diff options
-rw-r--r-- | src/Editor.cxx | 2 |
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(), }; |