diff options
| author | Neil <nyamatongwe@gmail.com> | 2026-04-23 10:42:27 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2026-04-23 10:42:27 +1000 |
| commit | fc5004a9e14cfd5c462abca0c8af3cab614aa48d (patch) | |
| tree | 3ee485eec59e9f1547002a8b862c3d25b2a7e306 /doc | |
| parent | ff16983250f077aa2fa1ac1039ad421813fd20f0 (diff) | |
| download | scintilla-mirror-fc5004a9e14cfd5c462abca0c8af3cab614aa48d.tar.gz | |
Add error status SC_STATUS_OUTSIDE_DOCUMENT that is set when operations are
attempted on a position outside the document.
Positions are checked earlier to prevent actions partly succeeding.
This is implemented with a new exception type Failure which should be caught by
platform layer's API handling code to produce a more granular error status.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/ScintillaDoc.html | 10 | ||||
| -rw-r--r-- | doc/ScintillaHistory.html | 7 |
2 files changed, 17 insertions, 0 deletions
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 3189a001a..c21bd2e29 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -959,6 +959,12 @@ struct Sci_TextRangeFull { </tr> <tr> + <th align="left"><code>SC_STATUS_OUTSIDE_DOCUMENT</code></th> + <td>3</td> + <td>An operation was attempted on a position that is outside the document</td> + </tr> + + <tr> <th align="left"><code>SC_STATUS_WARN_REGEX</code></th> <td>1001</td> <td>Regular expression is invalid</td> @@ -967,6 +973,10 @@ struct Sci_TextRangeFull { </tbody> </table> + <p>To more easily check the status of APIs, applications should call the direct status function using + <a class="message" href="#SCI_GETDIRECTSTATUSFUNCTION"><code>SCI_GETDIRECTSTATUSFUNCTION</code></a>. + </p> + <h2 id="Selection">Selection</h2> <p>Scintilla maintains a selection that stretches between two points, the anchor and the diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index ea660ae37..fdcde25f9 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -606,6 +606,13 @@ Released 26 March 2026. </li> <li> + Add error status SC_STATUS_OUTSIDE_DOCUMENT that is set when operations are attempted on a position + outside the document. + Positions are checked earlier to prevent actions partly succeeding. + Incomplete actions could lead to features that are out of synchronization + like change history referring to text that has been deleted. + </li> + <li> On Win32 with DirectWrite in a GDI scaled application, draw sharper text in autocompletion lists. <a href="https://sourceforge.net/p/scintilla/bugs/2505/">Bug #2505</a>. </li> |
