sam: ignore autoindent in cmd window

This commit is contained in:
umbraticus@prosimetrum.com 2022-04-29 05:31:30 +00:00 committed by qwx
parent 63f8dc8084
commit 641bd4512f

View file

@ -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);