aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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;