diff options
author | Neil <nyamatongwe@gmail.com> | 2022-03-15 15:14:42 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2022-03-15 15:14:42 +1100 |
commit | 23b2a54292964dc653d7ebb64c4b2a044eeaa8e7 (patch) | |
tree | fb9ccd4793daaa16b18551fd599b622f0ae96315 /call | |
parent | 96480716cb3acc793436ce037650445a137115da (diff) | |
download | scintilla-mirror-23b2a54292964dc653d7ebb64c4b2a044eeaa8e7.tar.gz |
Feature [feature-requests:#1431] Add SCI_GETSTYLEINDEXAT API to return styles
over 127 as positive integers.
Diffstat (limited to 'call')
-rw-r--r-- | call/ScintillaCall.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/call/ScintillaCall.cxx b/call/ScintillaCall.cxx index 53b4e0cf7..ec689a274 100644 --- a/call/ScintillaCall.cxx +++ b/call/ScintillaCall.cxx @@ -96,8 +96,7 @@ char ScintillaCall::CharacterAt(Position position) { } int ScintillaCall::UnsignedStyleAt(Position position) { - // Returns signed value but easier to use as unsigned - return static_cast<unsigned char>(Call(Message::GetStyleAt, position)); + return static_cast<int>(Call(Message::GetStyleIndexAt, position)); } std::string ScintillaCall::StringOfSpan(Span span) { @@ -192,6 +191,10 @@ int ScintillaCall::StyleAt(Position pos) { return static_cast<int>(Call(Message::GetStyleAt, pos)); } +int ScintillaCall::StyleIndexAt(Position pos) { + return static_cast<int>(Call(Message::GetStyleIndexAt, pos)); +} + void ScintillaCall::Redo() { Call(Message::Redo); } |