aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-12-23 10:37:49 +0000
committernyamatongwe <devnull@localhost>2001-12-23 10:37:49 +0000
commitb173e7f0ef6456f309292713048a14c4aa407188 (patch)
tree2a72ece719ce722f862cbd38efa37c9f7e9677fa
parent02f44619fe013b0b618125950ca2935287520ad8 (diff)
downloadscintilla-mirror-b173e7f0ef6456f309292713048a14c4aa407188.tar.gz
Fixed bug where changing to wrap mode when horizontally scrolled led to
that sroll amount being kept with no way to return it to 0. Now setting to wrap mode sets the x offset to 0.
-rw-r--r--src/Editor.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 53b38f827..0ac540307 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -4324,6 +4324,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
case SCI_SETWRAPMODE:
wrapState = (wParam == SC_WRAP_WORD) ? eWrapWord : eWrapNone;
needWrap = true;
+ xOffset = 0;
InvalidateStyleRedraw();
ReconfigureScrollBars();
break;