Menu

#1665 SCI_SEARCHNEXT search start point simple fix

Bug
closed-invalid
None
5
2014-11-13
2014-10-16
fakeraol
No

There seems to be no way, to move the SEARCHANCHOR past SELECTIONSTART without loosing the already existing selections.
Because with SCI_SEARCHANCHOR the search start point is at start of the current selection, and the minimum length of this selection could be 1 char, the only thing, to get SCI_SEARCHNEXT searching past the (start of the) last hit, is to add 1 to the position of the SEARCHANCHOR.

Alternative way will be, to give SCI_SEARCHANCHOR the SCI_GETSELECTIONEND value as param, to make it a range (as wide as the last hit) instead of a point.

Discussion

  • Neil Hodgson

    Neil Hodgson - 2014-10-16

    If the user wants to search from the end of the current hit they should press the right arrow key and invoke search again.

    SCI_SEARCHANCHOR is there only to support macro recording. Are you sure its the API you want to use?

     
  • fakeraol

    fakeraol - 2014-10-17

    I try emulate multi-cursor without mouseclicks, like in "sublime text". NPPexec lacks support for struct, so i have to do it this way.

     
    • Neil Hodgson

      Neil Hodgson - 2014-10-17

      I have no knowledge of NPPexec but the SCI_SEARCHINTARGET API does not use a struct.

       
  • Neil Hodgson

    Neil Hodgson - 2014-10-21
    • status: open --> open-invalid
    • assigned_to: Neil Hodgson
     
  • Neil Hodgson

    Neil Hodgson - 2014-11-13
    • status: open-invalid --> closed-invalid
     

Log in to post a comment.