From 17cf9b5382dc905b2a89098945310bdce424b9ab Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 23 Dec 2001 10:37:49 +0000 Subject: 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. --- src/Editor.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Editor.cxx') 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; -- cgit v1.2.3