From c5bb65863951eae9e98dd5aa19db683fd23c5242 Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Fri, 10 Mar 2023 15:09:42 +1100 Subject: Feature [feature-requests:#1481] Fix lineTop to assign document line instead of screen line as that is expected. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(), }; -- cgit v1.2.3