diff options
author | nyamatongwe <unknown> | 2004-07-17 01:38:21 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2004-07-17 01:38:21 +0000 |
commit | 610681c289adaa5a1217630821b0d12d0953f640 (patch) | |
tree | bbe3e22a5a0383e99720082c753d058d9dc94c4b | |
parent | 2b42ad0c67c82e9bc73e949b1fdc6dcbdcbf2e89 (diff) | |
download | scintilla-mirror-610681c289adaa5a1217630821b0d12d0953f640.tar.gz |
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.
-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 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) { |