aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2022-03-15 15:14:42 +1100
committerNeil <nyamatongwe@gmail.com>2022-03-15 15:14:42 +1100
commit23b2a54292964dc653d7ebb64c4b2a044eeaa8e7 (patch)
treefb9ccd4793daaa16b18551fd599b622f0ae96315 /src
parent96480716cb3acc793436ce037650445a137115da (diff)
downloadscintilla-mirror-23b2a54292964dc653d7ebb64c4b2a044eeaa8e7.tar.gz
Feature [feature-requests:#1431] Add SCI_GETSTYLEINDEXAT API to return styles
over 127 as positive integers.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index bbac4862a..e7459e477 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -6484,6 +6484,12 @@ sptr_t Editor::WndProc(Message iMessage, uptr_t wParam, sptr_t lParam) {
else
return pdoc->StyleAt(PositionFromUPtr(wParam));
+ case Message::GetStyleIndexAt:
+ if (PositionFromUPtr(wParam) >= pdoc->Length())
+ return 0;
+ else
+ return pdoc->StyleIndexAt(PositionFromUPtr(wParam));
+
case Message::Redo:
Redo();
break;