From 2196ed6fc9dce1ebc4d4e631a77859967b848f72 Mon Sep 17 00:00:00 2001
From: nyamatongwe
-
+
@@ -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.
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.