From 2196ed6fc9dce1ebc4d4e631a77859967b848f72 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 12 Jul 2010 02:07:14 +0000 Subject: Feature #3027559 Extend "sticky caret" feature from Jason Oster. Additional mode SC_CARETSTICKY_WHITESPACE implemented. --- include/Scintilla.iface | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'include/Scintilla.iface') 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(,) -- cgit v1.2.3