[scintilla:bugs] #2497 Rectangular selection indent incorrect selection modes and positions

0 views
Skip to first unread message

Michael Heath

unread,
Jan 7, 2026, 9:02:41 PM (2 days ago) Jan 7
to scintill...@googlegroups.com

[bugs:#2497] Rectangular selection indent incorrect selection modes and positions

Status: open
Group: Bug
Labels: scintilla
Created: Thu Jan 08, 2026 02:02 AM UTC by Michael Heath
Last Updated: Thu Jan 08, 2026 02:02 AM UTC
Owner: nobody
Attachments:

The issue is based on:

BUG Incorrect tab behavior in column mode

caused by a change-set committed at

Remove unnecessary InvalidateStyleRedraw() for Message::SetUseTabs

Symptoms:

  • Carets can move to incorrect positions.
  • Undo changes selection mode so Redo is different.

Note: Preview of code converts tabs to spaces. I expect the results to remain the same.

  1. Test start of rectangle at column 0:
-
    -
  1. Rectangle select downwards and tab to indent result
    |-
    |   -

The pipe character represent the carets.
The change-set sets a thin selection.

  1. Reset to step 1. Rectangle select upwards and tab to indent result.
    -|
        |-

The 1st caret is 1 position too far.

Another symptom from the change-set is undo reverts the selection mode to stream mode as the indenting was done with stream mode. So undo and redo does this with the select downwards continuing with step 2.

    |-
        |-

The undo seems to forget the rectangle mode and remembers the stream mode so the result is different.

I have attached possible fix. I tested the IDM_HELP code in SciTE and it seems to pass OK.


Sent from sourceforge.net because scintill...@googlegroups.com is subscribed to https://sourceforge.net/p/scintilla/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/scintilla/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.

Reply all
Reply to author
Forward
0 new messages