aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index b64f99de9..304ed61bc 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -4386,9 +4386,11 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
return pdoc->GetColumn(wParam);
case SCI_SETHSCROLLBAR :
- horizontalScrollBarVisible = wParam != 0;
- SetScrollBars();
- ReconfigureScrollBars();
+ if (horizontalScrollBarVisible != (wParam != 0)) {
+ horizontalScrollBarVisible = wParam != 0;
+ SetScrollBars();
+ ReconfigureScrollBars();
+ }
break;
case SCI_GETHSCROLLBAR: