diff options
| author | nyamatongwe <unknown> | 2010-07-12 02:07:14 +0000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2010-07-12 02:07:14 +0000 |
| commit | 2196ed6fc9dce1ebc4d4e631a77859967b848f72 (patch) | |
| tree | 2d25e7bde2d6fa93d7aa6b2ad659b61e8f7a5163 /include | |
| parent | c3c5b7bdaefaa1b4406b2cd9c8b6b4a3379f5153 (diff) | |
| download | scintilla-mirror-2196ed6fc9dce1ebc4d4e631a77859967b848f72.tar.gz | |
Feature #3027559 Extend "sticky caret" feature from Jason Oster.
Additional mode SC_CARETSTICKY_WHITESPACE implemented.
Diffstat (limited to 'include')
| -rw-r--r-- | include/Scintilla.h | 3 | ||||
| -rw-r--r-- | include/Scintilla.iface | 9 |
2 files changed, 10 insertions, 2 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h index b91c78c2a..efb536742 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -669,6 +669,9 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_FINDCOLUMN 2456 #define SCI_GETCARETSTICKY 2457 #define SCI_SETCARETSTICKY 2458 +#define SC_CARETSTICKY_OFF 0 +#define SC_CARETSTICKY_ON 1 +#define SC_CARETSTICKY_WHITESPACE 2 #define SCI_TOGGLECARETSTICKY 2459 #define SCI_SETPASTECONVERTENDINGS 2467 #define SCI_GETPASTECONVERTENDINGS 2468 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index d7c850840..f40530fda 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -1780,10 +1780,15 @@ fun int EncodedFromUTF8=2449(string utf8, stringresult encoded) fun int FindColumn=2456(int line, int column) # Can the caret preferred x position only be changed by explicit movement commands? -get bool GetCaretSticky=2457(,) +get int GetCaretSticky=2457(,) # Stop the caret preferred x position changing when the user types. -set void SetCaretSticky=2458(bool useCaretStickyBehaviour,) +set void SetCaretSticky=2458(int useCaretStickyBehaviour,) + +enu CaretSticky=SC_CARETSTICKY_ +val SC_CARETSTICKY_OFF=0 +val SC_CARETSTICKY_ON=1 +val SC_CARETSTICKY_WHITESPACE=2 # Switch between sticky and non-sticky: meant to be bound to a key. fun void ToggleCaretSticky=2459(,) |
