From 007cfe736327ea8775fa6bf6bd49257132cf45f2 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 24 Jun 2015 15:53:28 +0200 Subject: disable all Scintilla margins by default * it makes little sense to keep Scintilla's default for new views which gives margin 1 (non-folding symbols) a fixed width of 16 pixels. The interpretation of this width is UI-dependant. * it is more consistent to disable all margins initially. this is also the minimalist setup shown when you run e.g. with --no-profile. * the default look of SciTECO will be more like classic TECOs. This is also what has been requested in #4. * sample.teco_ini does no longer have to disable margin 1 explicitly --- src/interface.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/interface.cpp') diff --git a/src/interface.cpp b/src/interface.cpp index 0bcdf28..29ab22c 100644 --- a/src/interface.cpp +++ b/src/interface.cpp @@ -70,6 +70,12 @@ View::setup(void) */ ssm(SCI_SETHSCROLLBAR, FALSE); + /* + * Only margin 1 is given a width by default. + * To provide a minimalist default view, it is disabled. + */ + ssm(SCI_SETMARGINWIDTHN, 1, 0); + ssm(SCI_SETCARETSTYLE, CARETSTYLE_BLOCK); ssm(SCI_SETCARETPERIOD, 0); ssm(SCI_SETCARETFORE, 0xFFFFFF); -- cgit v1.2.3