diff options
author | Neil <nyamatongwe@gmail.com> | 2025-04-18 09:20:38 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2025-04-18 09:20:38 +1000 |
commit | c1de3774867127539b9b93efd4a0832a3f3a9fcf (patch) | |
tree | 8109f426718be98882a78c9369fbd9c4ca64224f /src/EditModel.cxx | |
parent | d36d669ddfd447fbbe28faef18457177bf102881 (diff) | |
download | scintilla-mirror-c1de3774867127539b9b93efd4a0832a3f3a9fcf.tar.gz |
Control restoring vertical scroll position for undo with
SC_UNDO_SELECTION_HISTORY_SCROLL flag to SCI_SETUNDOSELECTIONHISTORY.
Diffstat (limited to 'src/EditModel.cxx')
-rw-r--r-- | src/EditModel.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/EditModel.cxx b/src/EditModel.cxx index e12aab38e..65d39f9e7 100644 --- a/src/EditModel.cxx +++ b/src/EditModel.cxx @@ -172,7 +172,7 @@ int EditModel::GetMark(Sci::Line line) const { } void EditModel::EnsureModelState() { - if (!modelState && (undoSelectionHistoryOption == UndoSelectionHistoryOption::Enabled)) { + if (!modelState && (undoSelectionHistoryOption != UndoSelectionHistoryOption::Disabled)) { if (ViewStateShared vss = pdoc->GetViewState(this)) { modelState = std::dynamic_pointer_cast<ModelState>(vss); } else { |