From 3b72fe93906e4c6b8c800cf2c7b986bc2c2c89a2 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 15 Nov 2019 08:19:12 +1100 Subject: Backport: Feature [feature-requests:#1316] Add access to virtual space at start and end of multiple selections. Backport of changeset 7767:80102fe650b2. --- include/Scintilla.h | 2 ++ include/Scintilla.iface | 6 ++++++ 2 files changed, 8 insertions(+) (limited to 'include') diff --git a/include/Scintilla.h b/include/Scintilla.h index fbbc173d6..693e8e460 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -933,7 +933,9 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_GETSELECTIONNANCHORVIRTUALSPACE 2583 #define SCI_SETSELECTIONNSTART 2584 #define SCI_GETSELECTIONNSTART 2585 +#define SCI_GETSELECTIONNSTARTVIRTUALSPACE 2726 #define SCI_SETSELECTIONNEND 2586 +#define SCI_GETSELECTIONNENDVIRTUALSPACE 2727 #define SCI_GETSELECTIONNEND 2587 #define SCI_SETRECTANGULARSELECTIONCARET 2588 #define SCI_GETRECTANGULARSELECTIONCARET 2589 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 5194828cb..2aec8d092 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -2606,9 +2606,15 @@ set void SetSelectionNStart=2584(int selection, position anchor) # Returns the position at the start of the selection. get position GetSelectionNStart=2585(int selection,) +# Returns the virtual space at the start of the selection. +get position GetSelectionNStartVirtualSpace=2726(int selection,) + # Sets the position that ends the selection - this becomes the currentPosition. set void SetSelectionNEnd=2586(int selection, position caret) +# Returns the virtual space at the end of the selection. +get position GetSelectionNEndVirtualSpace=2727(int selection,) + # Returns the position at the end of the selection. get position GetSelectionNEnd=2587(int selection,) -- cgit v1.2.3