aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-12-23 10:37:49 +0000
committernyamatongwe <unknown>2001-12-23 10:37:49 +0000
commit17cf9b5382dc905b2a89098945310bdce424b9ab (patch)
tree2a72ece719ce722f862cbd38efa37c9f7e9677fa
parent35c57f3ffb1f211649107f989bc3d40c7c6c737c (diff)
downloadscintilla-mirror-17cf9b5382dc905b2a89098945310bdce424b9ab.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;