aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
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;