diff options
author | nyamatongwe <unknown> | 2012-07-16 14:06:12 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2012-07-16 14:06:12 +1000 |
commit | c82aad1a0279ac7232477876cfba1a9570ebd3c3 (patch) | |
tree | 72f456c5edd22f9d57c43cb6e6e3315c23ccd31c /doc/ScintillaDoc.html | |
parent | aeb8bd02a2b3f421be9269ce55ed230fda1f9f48 (diff) | |
download | scintilla-mirror-c82aad1a0279ac7232477876cfba1a9570ebd3c3.tar.gz |
Implement SCI_GETSELECTIONEMPTY API. Bug #3543121.
Diffstat (limited to 'doc/ScintillaDoc.html')
-rw-r--r-- | doc/ScintillaDoc.html | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 0fe4b05c7..2ab2d7f03 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -911,8 +911,8 @@ struct Sci_TextToFind { pasting from the clipboard into the document, and clearing the document. <code>SCI_CANPASTE</code> returns non-zero if the document isn't read-only and if the selection doesn't contain protected text. If you need a "can copy" or "can cut", use - <code>SCI_GETSELECTIONSTART()-SCI_GETSELECTIONEND()</code>, which will be non-zero if you can - copy or cut to the clipboard.</p> + <code>SCI_GETSELECTIONEMPTY()</code>, which will be zero if there are any non-empty + selection ranges implying that a copy or cut to the clipboard should work.</p> <p>GTK+ does not really support <code>SCI_CANPASTE</code> and always returns <code>TRUE</code> unless the document is read-only.</p> @@ -1504,6 +1504,7 @@ struct Sci_TextToFind { <br /> <a class="message" href="#SCI_GETSELECTIONS">SCI_GETSELECTIONS</a><br /> + <a class="message" href="#SCI_GETSELECTIONEMPTY">SCI_GETSELECTIONEMPTY</a><br /> <a class="message" href="#SCI_CLEARSELECTIONS">SCI_CLEARSELECTIONS</a><br /> <a class="message" href="#SCI_SETSELECTION">SCI_SETSELECTION(int caret, int anchor)</a><br /> <a class="message" href="#SCI_ADDSELECTION">SCI_ADDSELECTION(int caret, int anchor)</a><br /> @@ -1615,6 +1616,10 @@ struct Sci_TextToFind { Return the number of selections currently active.</p> <p> + <b id="SCI_GETSELECTIONEMPTY">SCI_GETSELECTIONEMPTY</b><br /> + Return 1 if every selected range is empty else 0.</p> + + <p> <b id="SCI_CLEARSELECTIONS">SCI_CLEARSELECTIONS</b><br /> Set a single empty selection at 0 as the only selection.</p> |