diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-06-24 15:53:28 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-06-24 15:53:28 +0200 |
commit | 007cfe736327ea8775fa6bf6bd49257132cf45f2 (patch) | |
tree | 1ca0c2f837833dc4c3140a748844bb13b1ce944e /src | |
parent | ae2f607a19b12a30374de059ec29beaf41f82c73 (diff) | |
download | sciteco-007cfe736327ea8775fa6bf6bd49257132cf45f2.tar.gz |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/interface.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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<ViewImpl>::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); |