aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZufu Liu <unknown>2023-03-10 15:09:42 +1100
committerZufu Liu <unknown>2023-03-10 15:09:42 +1100
commitc5bb65863951eae9e98dd5aa19db683fd23c5242 (patch)
tree03529ae8cb5763b3fbf430cfdb9b23b79ac6b71c
parent8fae431679bf87bbec77ddcaf5b24446cd6e10b5 (diff)
downloadscintilla-mirror-c5bb65863951eae9e98dd5aa19db683fd23c5242.tar.gz
Feature [feature-requests:#1481] Fix lineTop to assign document line instead of
screen line as that is expected.
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 30a9c9786..3b0455b5e 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -1510,7 +1510,7 @@ bool Editor::WrapBlock(Surface *surface, Sci::Line lineToWrap, Sci::Line lineToW
// Lines that are less likely to be re-examined should not be read from or written to the cache.
const SignificantLines significantLines {
pdoc->SciLineFromPosition(sel.MainCaret()),
- topLine,
+ pcs->DocFromDisplay(topLine),
LinesOnScreen() + 1,
view.llc.GetLevel(),
};