From d5a2e3789a7a165ae42989cba593061031e44550 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 8 Aug 2001 12:38:52 +0000 Subject: Patch from Philippe to make the display jump more when the caret reaches a margin. This is chosen with the CARET_XJUMPS flag. --- include/Scintilla.h | 1 + include/Scintilla.iface | 3 +++ 2 files changed, 4 insertions(+) (limited to 'include') 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) -- cgit v1.2.3