diff options
author | nyamatongwe <devnull@localhost> | 2011-06-05 10:15:45 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-06-05 10:15:45 +1000 |
commit | 6d32a7a7e0717dae69b2939082d14d97360b17e9 (patch) | |
tree | f034d93d44fa34e7a3a4fc690ac46dc97755e35a /cocoa/ScintillaView.mm | |
parent | a861c5ef88810df1fbb8efdf22d57e42a787cb4a (diff) | |
download | scintilla-mirror-6d32a7a7e0717dae69b2939082d14d97360b17e9.tar.gz |
Hide horizontal scrollbar in wrap mode.
Diffstat (limited to 'cocoa/ScintillaView.mm')
-rw-r--r-- | cocoa/ScintillaView.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index 85eb81a1c..2d9cdf6a2 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -1003,7 +1003,8 @@ static void notification(intptr_t windowid, unsigned int iMessage, uintptr_t wPa - (BOOL) setHorizontalScrollRange: (int) range page: (int) page { BOOL result = NO; - BOOL hideScroller = page >= range; + BOOL hideScroller = (page >= range) || + (mBackend->WndProc(SCI_GETWRAPMODE, 0, 0) != SC_WRAP_NONE); if ([mHorizontalScroller isHidden] != hideScroller) { |