diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 86b0aa1f2..00bdfcf57 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4691,9 +4691,10 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {  	case SCI_SETSCROLLWIDTH:  		PLATFORM_ASSERT(wParam > 0); -		if (wParam > 0) +		if ((wParam > 0) && (wParam != static_cast<unsigned int >(scrollWidth))) {  			scrollWidth = wParam; -		SetScrollBars(); +			SetScrollBars(); +		}  		break;  	case SCI_GETSCROLLWIDTH:  | 
