aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2023-11-05 14:08:57 +1100
committerNeil <nyamatongwe@gmail.com>2023-11-05 14:08:57 +1100
commit04cc53969e0d23cf19365712ca8c6afdbc4f3822 (patch)
tree01e14e82dee06ba50f57f9bf5b523d244c7b6ca0 /include
parent7f6786c9118007d0fcf3632c585e203a66c13c35 (diff)
downloadscintilla-mirror-04cc53969e0d23cf19365712ca8c6afdbc4f3822.tar.gz
Add SCI_SETMOVEEXTENDSSELECTION to simplify selection mode manipulation.
Diffstat (limited to 'include')
-rw-r--r--include/Scintilla.h1
-rw-r--r--include/Scintilla.iface3
-rw-r--r--include/ScintillaCall.h1
-rw-r--r--include/ScintillaMessages.h1
4 files changed, 6 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index 43a41e986..5b85dac47 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -875,6 +875,7 @@ typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wP
#define SC_SEL_THIN 3
#define SCI_SETSELECTIONMODE 2422
#define SCI_GETSELECTIONMODE 2423
+#define SCI_SETMOVEEXTENDSSELECTION 2719
#define SCI_GETMOVEEXTENDSSELECTION 2706
#define SCI_GETLINESELSTARTPOSITION 2424
#define SCI_GETLINESELENDPOSITION 2425
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index 9f02c78d2..b15606af0 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -2362,6 +2362,9 @@ set void SetSelectionMode=2422(SelectionMode selectionMode,)
# Get the mode of the current selection.
get SelectionMode GetSelectionMode=2423(,)
+# Set whether or not regular caret moves will extend or reduce the selection.
+set void SetMoveExtendsSelection=2719(bool moveExtendsSelection,)
+
# Get whether or not regular caret moves will extend or reduce the selection.
get bool GetMoveExtendsSelection=2706(,)
diff --git a/include/ScintillaCall.h b/include/ScintillaCall.h
index 8a01f2acb..0c95ef9e7 100644
--- a/include/ScintillaCall.h
+++ b/include/ScintillaCall.h
@@ -635,6 +635,7 @@ public:
void CopyText(Position length, const char *text);
void SetSelectionMode(Scintilla::SelectionMode selectionMode);
Scintilla::SelectionMode SelectionMode();
+ void SetMoveExtendsSelection(bool moveExtendsSelection);
bool MoveExtendsSelection();
Position GetLineSelStartPosition(Line line);
Position GetLineSelEndPosition(Line line);
diff --git a/include/ScintillaMessages.h b/include/ScintillaMessages.h
index 12b2c2504..e45398d72 100644
--- a/include/ScintillaMessages.h
+++ b/include/ScintillaMessages.h
@@ -557,6 +557,7 @@ enum class Message {
CopyText = 2420,
SetSelectionMode = 2422,
GetSelectionMode = 2423,
+ SetMoveExtendsSelection = 2719,
GetMoveExtendsSelection = 2706,
GetLineSelStartPosition = 2424,
GetLineSelEndPosition = 2425,