From f2bc1988dba5ca23692020017aa6f9ee2b4d71cf Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 25 Jan 2025 08:40:06 +1100 Subject: 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. --- call/ScintillaCall.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'call') 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(Call(Message::GetChangeHistory)); } -void ScintillaCall::SetSelectionUndoHistory(bool selectionUndoHistory) { - Call(Message::SetSelectionUndoHistory, selectionUndoHistory); +void ScintillaCall::SetUndoSelectionHistory(Scintilla::UndoSelectionHistoryOption undoSelectionHistory) { + Call(Message::SetUndoSelectionHistory, static_cast(undoSelectionHistory)); } -bool ScintillaCall::SelectionUndoHistory() { - return Call(Message::GetSelectionUndoHistory); +UndoSelectionHistoryOption ScintillaCall::UndoSelectionHistory() { + return static_cast(Call(Message::GetUndoSelectionHistory)); } Line ScintillaCall::FirstVisibleLine() { -- cgit v1.2.3