commit 9f6b0e2
ohmu
·
2026-07-17 09:12:09 +0300 MSK
parent e9b87ca
added column number configuration
4 files changed,
+4,
-8
+1,
-4
1@@ -64,11 +64,10 @@ threadmain(int argc, char *argv[])
2 int i;
3 char *p, *loadfile;
4 Column *c;
5- int ncol;
6 Display *d;
7 rfork(RFENVG|RFNAMEG);
8
9- ncol = -1;
10+ init_config();
11
12 loadfile = nil;
13 ARGBEGIN{
14@@ -140,8 +139,6 @@ threadmain(int argc, char *argv[])
15 threadexitsall("usage");
16 }ARGEND
17
18- init_config();
19-
20 quotefmtinstall();
21 fmtinstall('t', timefmt);
22
+1,
-3
1@@ -1,6 +1,3 @@
2-" Copy this as $HOME/.acmerc
3-
4-
5 " settings
6
7 mainfont /home/glenda/src/fonts/GoMonoNF/13a/font
8@@ -11,6 +8,7 @@ shell /bin/rc
9 autoindent 1
10 swpscrllbtns 0
11 clicktofocus 0
12+colcount 1
13
14 " theming
15
+1,
-0
1@@ -107,6 +107,7 @@ init_config(void)
2 globalautoindent = get_int_value(f, "autoindent", 1);
3 swapscrollbuttons = get_int_value(f, "swpscrllbtns", 0);
4 bartflag = get_int_value(f, "clicktofocus", 1);
5+ ncol = get_int_value(f, "colcount", 2);
6
7 fclose(f);
8 }
+1,
-1
1@@ -33,4 +33,4 @@ char *acmeshell;
2 int globalautoindent;
3 int bartflag;
4 int swapscrollbuttons;
5-
6+int ncol;