diff options
author | nyamatongwe <unknown> | 2009-08-12 00:08:16 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-08-12 00:08:16 +0000 |
commit | 9a722f8cc8066bebfdef5e6fbe617c7019e016fd (patch) | |
tree | 45975cbd30dbb81d5d856c168d43781f1b8f14b1 | |
parent | befd8930e3dda32adaa62fbe84f90c99f3d37cca (diff) | |
download | scintilla-mirror-9a722f8cc8066bebfdef5e6fbe617c7019e016fd.tar.gz |
Fixed SCI_GETSELTEXT for discontiguous selections.
-rw-r--r-- | doc/ScintillaDoc.html | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 6a4f30fe6..5a75bd12b 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -1207,10 +1207,9 @@ struct TextToFind { href="#SCI_POSITIONFROMLINE"><code>SCI_POSITIONFROMLINE(line)</code></a>.</p> <b id="SCI_GETSELTEXT">SCI_GETSELTEXT(<unused>, char *text)</b><br /> This copies the currently selected text and a terminating 0 byte to the <code>text</code> - buffer. The buffer must be at least - <code>SCI_GETSELECTIONEND()-SCI_GETSELECTIONSTART()+1</code> bytes long. <br /> - If the text argument is 0 then the length that should be allocated - to store the entire selection is returned.<br /> + buffer. The buffer size should be determined by calling with a NULL pointer for the <code>text</code> argument + <code>SCI_GETSELTEXT(0,0)</code>. + This allows for rectangular and discontiguous selections as well as simple selections.<br /> <p>See also: <code><a class="message" href="#SCI_GETCURLINE">SCI_GETCURLINE</a>, <a class="message" href="#SCI_GETLINE">SCI_GETLINE</a>, <a class="message" |