diff options
author | Neil <nyamatongwe@gmail.com> | 2025-01-25 08:40:06 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2025-01-25 08:40:06 +1100 |
commit | f2bc1988dba5ca23692020017aa6f9ee2b4d71cf (patch) | |
tree | d4a01f6ce4ad7fd5afa7a2b65b6a68c1cf932f96 /call/ScintillaCall.cxx | |
parent | 3de9d37c7b8f4501558d309ada718dc52533e94c (diff) | |
download | scintilla-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 'call/ScintillaCall.cxx')
-rw-r--r-- | call/ScintillaCall.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/call/ScintillaCall.cxx b/call/ScintillaCall.cxx index 32855b9be..550adc710 100644 --- a/call/ScintillaCall.cxx +++ b/call/ScintillaCall.cxx @@ -1259,12 +1259,12 @@ ChangeHistoryOption ScintillaCall::ChangeHistory() { return static_cast<Scintilla::ChangeHistoryOption>(Call(Message::GetChangeHistory)); } -void ScintillaCall::SetSelectionUndoHistory(bool selectionUndoHistory) { - Call(Message::SetSelectionUndoHistory, selectionUndoHistory); +void ScintillaCall::SetUndoSelectionHistory(Scintilla::UndoSelectionHistoryOption undoSelectionHistory) { + Call(Message::SetUndoSelectionHistory, static_cast<uintptr_t>(undoSelectionHistory)); } -bool ScintillaCall::SelectionUndoHistory() { - return Call(Message::GetSelectionUndoHistory); +UndoSelectionHistoryOption ScintillaCall::UndoSelectionHistory() { + return static_cast<Scintilla::UndoSelectionHistoryOption>(Call(Message::GetUndoSelectionHistory)); } Line ScintillaCall::FirstVisibleLine() { |