aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk
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 /gtk
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 'gtk')
-rwxr-xr-xgtk/ScintillaGTK.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 686a8c13f..b8a7c354a 100755
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -947,6 +947,8 @@ sptr_t ScintillaGTK::WndProc(Message iMessage, uptr_t wParam, sptr_t lParam) {
}
} catch (std::bad_alloc &) {
errorStatus = Status::BadAlloc;
+ } catch (Failure &failure) {
+ errorStatus = failure.status;
} catch (...) {
errorStatus = Status::Failure;
}