From 1f4b5abefa8e7e1ca19e290898b7fa1a5103cd7c Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Sat, 25 Aug 2012 00:07:55 +0200 Subject: Add SCI_VCHOMEDISPLAY keyboard command This works like SCI_HOMEDISPLAY but goes to the first visible character if on a logical line, like does SCI_VCHOME. This command makes it possible to use display-line-aware commands while keeping the "smart home" feature. --- include/Scintilla.h | 1 + include/Scintilla.iface | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/Scintilla.h b/include/Scintilla.h index 63fe4fff5..f415b8e59 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -874,6 +874,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_PROPERTYTYPE 4015 #define SCI_DESCRIBEPROPERTY 4016 #define SCI_DESCRIBEKEYWORDSETS 4017 +#define SCI_VCHOMEDISPLAY 4018 #define SC_MOD_INSERTTEXT 0x1 #define SC_MOD_DELETETEXT 0x2 #define SC_MOD_CHANGESTYLE 0x4 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 138730e61..677dcf855 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -2328,6 +2328,10 @@ fun int DescribeProperty=4016(string name, stringresult description) # Retrieve a '\n' separated list of descriptions of the keyword sets understood by the current lexer. fun int DescribeKeyWordSets=4017(, stringresult descriptions) +# Move caret to before first visible character on display line. +# If already there move to first character on display line. +fun void VCHomeDisplay=4018(,) + # Notifications # Type of modification and the action which caused the modification. # These are defined as a bit mask to make it easy to specify which notifications are wanted. -- cgit v1.2.3