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. --- doc/ScintillaDoc.html | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index cd4939a55..41c3a5d43 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -2526,7 +2526,7 @@ struct Sci_TextToFind { SCI_SETCONTROLCHARSYMBOL(int symbol)
SCI_GETCONTROLCHARSYMBOL
- SCI_SETCARETSTICKY(bool useCaretStickyBehaviour)
+ SCI_SETCARETSTICKY(int useCaretStickyBehaviour)
SCI_GETCARETSTICKY
SCI_TOGGLECARETSTICKY
@@ -2631,12 +2631,25 @@ struct Sci_TextToFind { You can read back the current symbol with the SCI_GETCONTROLCHARSYMBOL message. The default symbol value is 0.

-

SCI_SETCARETSTICKY(bool useCaretStickyBehaviour)
+

SCI_SETCARETSTICKY(int useCaretStickyBehaviour)
SCI_GETCARETSTICKY
SCI_TOGGLECARETSTICKY
- These messages set, get or toggle the caretSticky flag which controls when the last position - of the caret on the line is saved. When set to true, the position is not saved when you type - a character, a tab, paste the clipboard content or press backspace.

+ These messages set, get or toggle the caretSticky setting which controls when the last position + of the caret on the line is saved.

+ +

When set to SC_CARETSTICKY_OFF (0), the sticky flag is off; all text changes + (and all caret position changes) will remember the + caret's new horizontal position when moving to different lines. This is the default.

+ +

When set to SC_CARETSTICKY_ON (1), the sticky flag is on, and the only thing which will cause the editor to remember the + horizontal caret position is moving the caret with mouse or keyboard (left/right arrow keys, home/end keys, etc).

+ +

When set to SC_CARETSTICKY_WHITESPACE (2), the caret acts like mode 0 (sticky off) except under one + special case; when space or tab characters are inserted. (Including pasting only space/tabs -- undo, redo, + etc. do not exhibit this behavior..).

+ +

SCI_TOGGLECARETSTICKY switches from SC_CARETSTICKY_ON and SC_CARETSTICKY_WHITESPACE + to SC_CARETSTICKY_OFF and from SC_CARETSTICKY_OFF to SC_CARETSTICKY_ON.

Margins

-- cgit v1.2.3