aboutsummaryrefslogtreecommitdiffhomepage
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
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
-rw-r--r--sample.teco_ini1
-rw-r--r--src/interface.cpp6
2 files changed, 6 insertions, 1 deletions
diff --git a/sample.teco_ini b/sample.teco_ini
index fdd20fb..1243c54 100644
--- a/sample.teco_ini
+++ b/sample.teco_ini
@@ -20,7 +20,6 @@ EMQ[$SCITECOPATH]/session.tes
! Set up margins !
33ESTEXTWIDTH9U.w
5*Q.w,0ESSETMARGINWIDTHN
- 0,1ESSETMARGINWIDTHN
Q.w,2ESSETMARGINWIDTHN
0,32ED
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);