aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-08-08 12:38:52 +0000
committernyamatongwe <devnull@localhost>2001-08-08 12:38:52 +0000
commita02c8bbb552891661a4987c0488010cde91c0cd3 (patch)
treeea681b2e2f1f417f13ca45f417f455959de50f08 /include
parentbbc25f15a4fa9c8bcae5d001897b73b783b14ad6 (diff)
downloadscintilla-mirror-a02c8bbb552891661a4987c0488010cde91c0cd3.tar.gz
Patch from Philippe to make the display jump more when the caret reaches
a margin. This is chosen with the CARET_XJUMPS flag.
Diffstat (limited to 'include')
-rw-r--r--include/Scintilla.h1
-rw-r--r--include/Scintilla.iface3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index 65a95b8e9..664d11879 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -411,6 +411,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
#define CARET_CENTER 0x02
#define CARET_STRICT 0x04
#define CARET_XEVEN 0x08
+#define CARET_XJUMPS 0x10
#define SCI_SETCARETPOLICY 2369
#define SCI_LINESONSCREEN 2370
#define SCI_USEPOPUP 2371
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index bb40634f3..a8b42dbdb 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -1079,6 +1079,9 @@ val CARET_STRICT=0x04
# If CARET_XEVEN set then both left and right margins are given equal weight
# rather than favouring left following behaviour.
val CARET_XEVEN=0x08
+# If CARET_XJUMPS set then when caret reaches the margin the display jumps
+# enough to leave the caret solidly within the display.
+val CARET_XJUMPS=0x10
# Set the way the line the caret is on is kept visible.
fun void SetCaretPolicy=2369(int caretPolicy, int caretSlop)