From a1a7d3d737f8f464ca3403dad6a0755a2d85abaa Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 23 Jun 2015 00:24:18 +0200 Subject: never show the horizontal scrollbar by default * the GTK UI shows the horizontal scrollbar by default, while Scinterm doesn't. Since showing them with Scintilla's default settings is ugly but setting them up properly is costly and should be decided by the user. --- src/interface.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/interface.cpp') diff --git a/src/interface.cpp b/src/interface.cpp index 0fd7af2..17ec0a2 100644 --- a/src/interface.cpp +++ b/src/interface.cpp @@ -63,6 +63,13 @@ View::setup(void) ssm(SCI_SETFOCUS, TRUE); + /* + * Some Scintilla implementations show the horizontal + * scroll bar by default. + * Ensure it is never displayed by default. + */ + ssm(SCI_SETHSCROLLBAR, FALSE); + ssm(SCI_SETCARETSTYLE, CARETSTYLE_BLOCK); ssm(SCI_SETCARETFORE, 0xFFFFFF); -- cgit v1.2.3