From 9e70fe41ad43fda3c1fa1d554334938f9bc1b47f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 17 Jul 2004 01:38:21 +0000 Subject: Patch from Brian Carnes to avoid scroll upwards when line added in wrap mode on continuation line at top of window. This made it appear as if nothing happened. --- 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 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) { -- cgit v1.2.3