From 7d01c96adae522546f20fb5e98c2fbdfec632fa2 Mon Sep 17 00:00:00 2001 From: "umbraticus@prosimetrum.com" Date: Fri, 29 Apr 2022 05:31:30 +0000 Subject: [PATCH] sam: ignore autoindent in cmd window --- sys/src/cmd/samterm/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/src/cmd/samterm/main.c b/sys/src/cmd/samterm/main.c index 9efdf5e25..bd46bc677 100644 --- a/sys/src/cmd/samterm/main.c +++ b/sys/src/cmd/samterm/main.c @@ -530,8 +530,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);