diff options
author | nyamatongwe <devnull@localhost> | 2001-12-23 10:37:49 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2001-12-23 10:37:49 +0000 |
commit | b173e7f0ef6456f309292713048a14c4aa407188 (patch) | |
tree | 2a72ece719ce722f862cbd38efa37c9f7e9677fa | |
parent | 02f44619fe013b0b618125950ca2935287520ad8 (diff) | |
download | scintilla-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.cxx | 1 |
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; |