aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/EditModel.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2025-01-25 08:40:06 +1100
committerNeil <nyamatongwe@gmail.com>2025-01-25 08:40:06 +1100
commitf2bc1988dba5ca23692020017aa6f9ee2b4d71cf (patch)
treed4a01f6ce4ad7fd5afa7a2b65b6a68c1cf932f96 /src/EditModel.cxx
parent3de9d37c7b8f4501558d309ada718dc52533e94c (diff)
downloadscintilla-mirror-f2bc1988dba5ca23692020017aa6f9ee2b4d71cf.tar.gz
Bug [#1224]. Use enum for undo selection history and make API names more
consistent as 'undo selection' instead of 'selection undo' as more closely associated with undo than selection.
Diffstat (limited to 'src/EditModel.cxx')
-rw-r--r--src/EditModel.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/EditModel.cxx b/src/EditModel.cxx
index 60848e6dc..1f9c2d064 100644
--- a/src/EditModel.cxx
+++ b/src/EditModel.cxx
@@ -181,7 +181,7 @@ int EditModel::GetMark(Sci::Line line) const {
}
void EditModel::EnsureModelState() {
- if (!modelState && rememberingSelectionForUndo) {
+ if (!modelState && (undoSelectionHistoryOption == UndoSelectionHistoryOption::Enabled)) {
if (ViewStateShared vss = pdoc->GetViewState(this)) {
modelState = std::dynamic_pointer_cast<ModelState>(vss);
} else {