acme: reverse logic of autoindent and bart flags

This commit is contained in:
gutmet 2020-08-27 21:53:36 +02:00
parent e64c35c9c5
commit 1a81435197
2 changed files with 26 additions and 3 deletions

View File

@ -1,8 +1,30 @@
diff --git a/src/cmd/acme/acme.c b/src/cmd/acme/acme.c 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 --- a/src/cmd/acme/acme.c
+++ b/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} 0x00, 0x00, 0x00, 0x00}
}; };
@ -16,7 +38,7 @@ index e5658a4e..2c79b387 100644
void void
iconinit(void) iconinit(void)
{ {
@@ -1041,19 +1048,17 @@ iconinit(void) @@ -1041,19 +1050,17 @@ iconinit(void)
Image *tmp; Image *tmp;
if(tagcols[BACK] == nil) { if(tagcols[BACK] == nil) {

View File

@ -2,6 +2,7 @@ Changes to acme
=============== ===============
- changed color scheme to dark background and light text - changed color scheme to dark background and light text
- reversed the logic of the globalautoindent and bart flags
- changed keyboard shortcuts: - changed keyboard shortcuts:
- Down and Up now move the cursor to the end of the line below/above - 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 - If you scroll more than 10 lines at a time, the cursor moves along