diff options
author | Zufu Liu <unknown> | 2023-11-07 13:46:00 +1100 |
---|---|---|
committer | Zufu Liu <unknown> | 2023-11-07 13:46:00 +1100 |
commit | cba3701a6c1a67b839ebe567992e004d1ac4d7f1 (patch) | |
tree | 94f43861d4c13a020d8473569f7891178da1fd5c /src/Document.cxx | |
parent | 40c0b2cef161f93209b1c8384f6429d181b6e054 (diff) | |
download | scintilla-mirror-cba3701a6c1a67b839ebe567992e004d1ac4d7f1.tar.gz |
Feature [feature-requests:#1501] More use of LineStartPosition, LineEndPosition.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r-- | src/Document.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index 5d9e10c40..a35105669 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -2404,8 +2404,7 @@ void Document::EnsureStyledTo(Sci::Position pos) { if ((enteredStyling == 0) && (pos > GetEndStyled())) { IncrementStyleClock(); if (pli && !pli->UseContainerLexing()) { - const Sci::Line lineEndStyled = SciLineFromPosition(GetEndStyled()); - const Sci::Position endStyledTo = LineStart(lineEndStyled); + const Sci::Position endStyledTo = LineStartPosition(GetEndStyled()); pli->Colourise(endStyledTo, pos); } else { // Ask the watchers to style, and stop as soon as one responds. |