aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2002-02-12 10:34:58 +0000
committernyamatongwe <devnull@localhost>2002-02-12 10:34:58 +0000
commit8fdc38b725ee9cc02900995e41fc9eb35305d611 (patch)
tree7a689767151f1b97be707043268a61693cb7025b
parentb0188c638f8d44e3f33e6fa61712550a1ca68058 (diff)
downloadscintilla-mirror-8fdc38b725ee9cc02900995e41fc9eb35305d611.tar.gz
Avoid extra processing if SETHSCROLLBAR used to set to same value as
before.
-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: