shithub: riscv

Download patch

ref: 641bd4512ff02b1b86157263ab604bc790f0c89d
parent: 63f8dc808490ef038ce868eba62983290e38489d
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);