git: 9front

Download patch

ref: 3ef60e14b1f6830924f9498659b588388386b617
parent: ba2a629fb911633c2e50faa45216604229b55e25
author: umbraticus@prosimetrum.com <umbraticus@prosimetrum.com>
date: Fri Apr 29 01:31:30 EDT 2022

sam: ignore autoindent in cmd window

--- a/sys/src/cmd/samterm/main.c
+++ b/sys/src/cmd/samterm/main.c
@@ -540,8 +540,7 @@
 				*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);
--