aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interface.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2015-06-24 15:53:28 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2015-06-24 15:53:28 +0200
commit007cfe736327ea8775fa6bf6bd49257132cf45f2 (patch)
tree1ca0c2f837833dc4c3140a748844bb13b1ce944e /src/interface.cpp
parentae2f607a19b12a30374de059ec29beaf41f82c73 (diff)
downloadsciteco-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/interface.cpp')
-rw-r--r--src/interface.cpp6
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);