aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2026-04-23 10:42:27 +1000
committerNeil <nyamatongwe@gmail.com>2026-04-23 10:42:27 +1000
commitfc5004a9e14cfd5c462abca0c8af3cab614aa48d (patch)
tree3ee485eec59e9f1547002a8b862c3d25b2a7e306 /include
parentff16983250f077aa2fa1ac1039ad421813fd20f0 (diff)
downloadscintilla-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 'include')
-rw-r--r--include/Scintilla.h1
-rw-r--r--include/Scintilla.iface1
-rw-r--r--include/ScintillaTypes.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index 94a66d4f8..7f12703d3 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -863,6 +863,7 @@ typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wP
#define SC_STATUS_OK 0
#define SC_STATUS_FAILURE 1
#define SC_STATUS_BADALLOC 2
+#define SC_STATUS_OUTSIDE_DOCUMENT 3
#define SC_STATUS_WARN_START 1000
#define SC_STATUS_WARN_REGEX 1001
#define SCI_SETSTATUS 2382
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index d98ac8358..ddb025c50 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -2291,6 +2291,7 @@ enu Status=SC_STATUS_
val SC_STATUS_OK=0
val SC_STATUS_FAILURE=1
val SC_STATUS_BADALLOC=2
+val SC_STATUS_OUTSIDE_DOCUMENT=3
val SC_STATUS_WARN_START=1000
val SC_STATUS_WARN_REGEX=1001
diff --git a/include/ScintillaTypes.h b/include/ScintillaTypes.h
index a1e55c203..cc5f03815 100644
--- a/include/ScintillaTypes.h
+++ b/include/ScintillaTypes.h
@@ -432,6 +432,7 @@ enum class Status {
Ok = 0,
Failure = 1,
BadAlloc = 2,
+ OutsideDocument = 3,
WarnStart = 1000,
RegEx = 1001,
};