From 1a81435197181b3e587a4277751296d012c6deb1 Mon Sep 17 00:00:00 2001 From: gutmet Date: Thu, 27 Aug 2020 21:53:36 +0200 Subject: [PATCH] acme: reverse logic of autoindent and bart flags --- acme.diff | 28 +++++++++++++++++++++++++--- acme.txt | 1 + 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/acme.diff b/acme.diff index 4f2f7c6..51bee8f 100644 --- a/acme.diff +++ b/acme.diff @@ -1,8 +1,30 @@ diff --git a/src/cmd/acme/acme.c b/src/cmd/acme/acme.c -index e5658a4e..2c79b387 100644 +index e5658a4e..a3ea874a 100644 --- a/src/cmd/acme/acme.c +++ b/src/cmd/acme/acme.c -@@ -1034,6 +1034,13 @@ Cursor2 boxcursor2 = { +@@ -69,6 +69,8 @@ threadmain(int argc, char *argv[]) + rfork(RFENVG|RFNAMEG); + + ncol = -1; ++ globalautoindent = TRUE; ++ bartflag = TRUE; + + loadfile = nil; + ARGBEGIN{ +@@ -78,10 +80,10 @@ threadmain(int argc, char *argv[]) + } + break; + case 'a': +- globalautoindent = TRUE; ++ globalautoindent = FALSE; + break; + case 'b': +- bartflag = TRUE; ++ bartflag = FALSE; + break; + case 'c': + p = ARGF(); +@@ -1034,6 +1036,13 @@ Cursor2 boxcursor2 = { 0x00, 0x00, 0x00, 0x00} }; @@ -16,7 +38,7 @@ index e5658a4e..2c79b387 100644 void iconinit(void) { -@@ -1041,19 +1048,17 @@ iconinit(void) +@@ -1041,19 +1050,17 @@ iconinit(void) Image *tmp; if(tagcols[BACK] == nil) { diff --git a/acme.txt b/acme.txt index f8544af..cc7d499 100644 --- a/acme.txt +++ b/acme.txt @@ -2,6 +2,7 @@ Changes to acme =============== - changed color scheme to dark background and light text +- reversed the logic of the globalautoindent and bart flags - changed keyboard shortcuts: - Down and Up now move the cursor to the end of the line below/above - If you scroll more than 10 lines at a time, the cursor moves along