From a081db882e05bffa8bde512d0db99fb765517c90 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 19 Jan 2008 04:19:36 +0000 Subject: CopyAllowLine from 280Z28 / Sam Harwell that reproduces Visual Studio's behaviour when performing copy on an empty selection copies the current line. --- 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 aa7c6e1be..ac32f40d8 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -667,6 +667,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_INDICATOREND 2509 #define SCI_SETPOSITIONCACHE 2514 #define SCI_GETPOSITIONCACHE 2515 +#define SCI_COPYALLOWLINE 2519 #define SCI_STARTRECORD 3001 #define SCI_STOPRECORD 3002 #define SCI_SETLEXER 4001 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index cabbbbb82..f847f7d13 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -1797,6 +1797,9 @@ set void SetPositionCache=2514(int size,) # How many entries are allocated to the position cache? get int GetPositionCache=2515(,) +# Copy the selection, if selection empty copy the line with the caret +fun void CopyAllowLine=2519(,) + # Start notifying the container of all key presses and commands. fun void StartRecord=3001(,) -- cgit v1.2.3