aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authornyamatongwe <unknown>2003-02-23 02:00:53 +0000
committernyamatongwe <unknown>2003-02-23 02:00:53 +0000
commit3de2de75f4d65a528089c9e28037974b44632ab9 (patch)
tree086ff9252089b45351b367a4cc3b4a62ce1c69ef /include
parent2c2f7515211fd3946cecac125d546abd60436ca3 (diff)
downloadscintilla-mirror-3de2de75f4d65a528089c9e28037974b44632ab9.tar.gz
Patch from Bruce Dodson for a variant on home and end keys for wrapped
mode that go to the start/end of the current display line. A second hit goes to the start/end of the document line.
Diffstat (limited to 'include')
-rw-r--r--include/Scintilla.h6
-rw-r--r--include/Scintilla.iface13
2 files changed, 19 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index 9f3b9ea34..ecdda8de1 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -454,6 +454,12 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
#define SCI_HOMEDISPLAYEXTEND 2346
#define SCI_LINEENDDISPLAY 2347
#define SCI_LINEENDDISPLAYEXTEND 2348
+#define SCI_HOMEWRAP 2349
+#define SCI_HOMEWRAPEXTEND 2450
+#define SCI_LINEENDWRAP 2451
+#define SCI_LINEENDWRAPEXTEND 2452
+#define SCI_VCHOMEWRAP 2453
+#define SCI_VCHOMEWRAPEXTEND 2454
#define SCI_MOVECARETINSIDEVIEW 2401
#define SCI_LINELENGTH 2350
#define SCI_BRACEHIGHLIGHT 2351
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index b16a729d1..984b4a3d8 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -1209,6 +1209,19 @@ fun void LineEndDisplay=2347(,)
# caret position.
fun void LineEndDisplayExtend=2348(,)
+# These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
+# except they behave differently when word-wrap is enabled:
+# They go first to the start / end of the display line, like (Home|LineEnd)Display
+# The difference is that, the cursor is already at the point, it goes on to the start
+# or end of the document line, as appropriate for (Home|LineEnd|VCHome)Extend.
+
+fun void HomeWrap=2349(,)
+fun void HomeWrapExtend=2450(,)
+fun void LineEndWrap=2451(,)
+fun void LineEndWrapExtend=2452(,)
+fun void VCHomeWrap=2453(,)
+fun void VCHomeWrapExtend=2454(,)
+
# Move the caret inside current view if it's not there already.
fun void MoveCaretInsideView=2401(,)