diff options
author | umbraticus@prosimetrum.com <umbraticus@prosimetrum.com> | 2022-04-29 05:31:30 +0000 |
---|---|---|
committer | qwx <qwx@sciops.net> | 2022-04-29 05:31:30 +0000 |
commit | 641bd4512ff02b1b86157263ab604bc790f0c89d (patch) | |
tree | 86dcef67ca81232dcb9b54cea47d2a727c669740 /sys/src/cmd/samterm | |
parent | 63f8dc808490ef038ce868eba62983290e38489d (diff) |
sam: ignore autoindent in cmd window
Diffstat (limited to 'sys/src/cmd/samterm')
-rw-r--r-- | sys/src/cmd/samterm/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/src/cmd/samterm/main.c b/sys/src/cmd/samterm/main.c index fe5dbab93..9dda7582e 100644 --- a/sys/src/cmd/samterm/main.c +++ b/sys/src/cmd/samterm/main.c @@ -540,8 +540,7 @@ type(Flayer *l, int res) /* what a bloody mess this is */ *p++ = ' '; } else *p++ = c; - if(autoindent) - if(c == '\n'){ + if(c == '\n' && autoindent && t != &cmd){ /* autoindent */ int cursor, ch; cursor = ctlu(&t->rasp, 0, a+(p-buf)-1); |