Menu

#1194 Preserve indicators when moving lines up/down

Won't_Implement
open
scintilla (287)
5
2017-07-04
2017-07-04
No

Currently, SCI_MOVESELECTEDLINESUP and SCI_MOVESELECTEDLINESDOWN cause any indicator ranges inside the text to be cleared.

To reproduce in SciTE:

  1. Add this to an options file:

    user.shortcuts=Alt+Down|2621| # SCI_MOVESELECTEDLINESDOWN
    
  2. Restart SciTE.

  3. Type the following text:

    hello
    world
    
  4. Invoke SearchFind.

  5. In the Find field, type: e
  6. Click Mark All. The letter e in the first line is highlighted with an indicator.
  7. With the cursor on the first line, press Alt+Down. The first line is moved down, and as a side effect, the highlighting disappears.

Intuitively, moving a block of text should not change things that are entirely contained within it.

I think it would be better to preserve indicator ranges in this case, if possible.

Discussion

  • Neil Hodgson

    Neil Hodgson - 2017-07-04
    • assigned_to: Neil Hodgson
    • Group: Completed --> Won't_Implement
     
  • Neil Hodgson

    Neil Hodgson - 2017-07-04

    Indicators do not stick to text that has been moved or copied. Mark All produces a snapshot result and does not attempt to maintain those indicators.

     

Log in to post a comment.