From fc5004a9e14cfd5c462abca0c8af3cab614aa48d Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 23 Apr 2026 10:42:27 +1000 Subject: 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. --- doc/ScintillaDoc.html | 10 ++++++++++ doc/ScintillaHistory.html | 7 +++++++ 2 files changed, 17 insertions(+) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 3189a001a..c21bd2e29 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -958,6 +958,12 @@ struct Sci_TextRangeFull { Memory is exhausted + + SC_STATUS_OUTSIDE_DOCUMENT + 3 + An operation was attempted on a position that is outside the document + + SC_STATUS_WARN_REGEX 1001 @@ -967,6 +973,10 @@ struct Sci_TextRangeFull { +

To more easily check the status of APIs, applications should call the direct status function using + SCI_GETDIRECTSTATUSFUNCTION. +

+

Selection

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.

  • + 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. +
  • +
  • On Win32 with DirectWrite in a GDI scaled application, draw sharper text in autocompletion lists. Bug #2505.
  • -- cgit v1.2.3