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 /win32 | |
parent | 40c0b2cef161f93209b1c8384f6429d181b6e054 (diff) | |
download | scintilla-mirror-cba3701a6c1a67b839ebe567992e004d1ac4d7f1.tar.gz |
Feature [feature-requests:#1501] More use of LineStartPosition, LineEndPosition.
Diffstat (limited to 'win32')
-rw-r--r-- | win32/ScintillaWin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index be910d0f9..7ff979bbf 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -3135,7 +3135,7 @@ LRESULT ScintillaWin::ImeOnReconvert(LPARAM lParam) { } else { // Ensure docCompStart+docCompLen be not beyond lineEnd. // since docCompLen by byte might break eol. - const Sci::Position lineEnd = pdoc->LineEnd(pdoc->LineFromPosition(rBase)); + const Sci::Position lineEnd = pdoc->LineEndPosition(rBase); const Sci::Position overflow = (docCompStart + docCompLen) - lineEnd; if (overflow > 0) { pdoc->DeleteChars(docCompStart, docCompLen - overflow); |