Is there an existing issue for this?
Description of the Issue
Since Scintilla 5.5.5, the selection for each action can be saved and then restored when undo or redo is performed.
SCI_SETUNDOSELECTIONHISTORY controls this.
Describe the solution you'd like.
Set SCI_SETUNDOSELECTIONHISTORY to 1 (SC_UNDO_SELECTION_HISTORY_ENABLED) by default. It's the default behaviour in every other editor.
Debug Information
Notepad++ v8.8 (64-bit)
Build time : Apr 24 2025 - 02:59:05
Scintilla/Lexilla included : 5.5.6/5.4.4
Boost Regex included : 1_85
Path : C:\Users\markus.ni\Downloads\npp.8.8.portable.x64\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
Periodic Backup : ON
Placeholders : OFF
Scintilla Rendering Mode : SC_TECHNOLOGY_DIRECTWRITE (1)
Multi-instance Mode : monoInst
File Status Auto-Detection : cdEnabledNew (for current file/tab only)
Dark Mode : OFF
OS Name : Windows 11 Pro (64-bit)
OS Version : 24H2
OS Build : 26100.3775
Current ANSI codepage : 1252
Plugins :
mimeTools (3.1)
NppConverter (4.6)
NppExport (0.4)
Anything else?
Issue #16235 Update to scintilla 5.5.5 & Lexilla 5.4.3