From 4663b7ffe215ea47902a467e26f4e6b40435f58d 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. --- doc/ScintillaDoc.html | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 8361977cf..02553bda6 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -822,6 +822,7 @@ struct TextToFind { SCI_COPYRANGE(int start, int end)
SCI_COPYTEXT(int length, const char *text)
+ SCI_COPYALLOWLINE
SCI_SETPASTECONVERTENDINGS(bool convert)
SCI_GETPASTECONVERTENDINGS
@@ -831,6 +832,7 @@ struct TextToFind { SCI_PASTE
SCI_CLEAR
SCI_CANPASTE
+ SCI_COPYALLOWLINE
These commands perform the standard tasks of cutting and copying data to the clipboard, pasting from the clipboard into the document, and clearing the document. SCI_CANPASTE returns non-zero if the document isn't read-only and if the selection @@ -845,6 +847,11 @@ struct TextToFind { the destination and source applications. Data from SCI_PASTE will not arrive in the document immediately.

+

SCI_COPYALLOWLINE works the same as SCI_COPY except that if the + selection is empty then the current line is copied. On Windows, an extra "MSDEVLineSelect" marker + is added to the clipboard which is then used in SCI_PASTE to paste + the whole line before the current line.

+ SCI_COPYRANGE(int start, int end)
SCI_COPYTEXT(int length, const char *text)

SCI_COPYRANGE copies a range of text from the document to -- cgit v1.2.3