[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:
scintillaRectIndentUpDown.zip (80.7 kB; application/x-zip-compressed)
Windows 11
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:
Note: Preview of code converts tabs to spaces. I expect the results to remain the same.
-
-
|-
| -
The pipe character represent the carets.
The change-set sets a thin selection.
-|
|-
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.