aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 64f3da3a1..81cf3bd47 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -672,7 +672,7 @@ int Editor::LineFromLocation(Point pt) {
void Editor::SetTopLine(int topLineNew) {
topLine = topLineNew;
- posTopLine = pdoc->LineStart(topLine);
+ posTopLine = pdoc->LineStart(cs.DocFromDisplay(topLine));
}
static inline bool IsEOLChar(char ch) {