mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-24 22:34:54 +02:00
Enable Scintilla undo/redo selection history
Ref: https://www.scintilla.org/ScintillaDoc.html#SCI_SETUNDOSELECTIONHISTORY Fix #16488, close #16496
This commit is contained in:
parent
a9d8dca832
commit
eb1b7977f6
@ -386,6 +386,10 @@ LRESULT Notepad_plus::init(HWND hwnd)
|
||||
_mainEditView.execute(SCI_STYLESETCHECKMONOSPACED, STYLE_DEFAULT, true);
|
||||
_subEditView.execute(SCI_STYLESETCHECKMONOSPACED, STYLE_DEFAULT, true);
|
||||
|
||||
// Restore also the possible previous selection for each undo/redo op (memory cost min 150B for each op)
|
||||
_mainEditView.execute(SCI_SETUNDOSELECTIONHISTORY, SC_UNDO_SELECTION_HISTORY_ENABLED);
|
||||
_subEditView.execute(SCI_SETUNDOSELECTIONHISTORY, SC_UNDO_SELECTION_HISTORY_ENABLED);
|
||||
|
||||
const auto& hf = _mainDocTab.getFont(nppGUI._tabStatus & TAB_REDUCE);
|
||||
if (hf)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user