Explorar el Código

Ignore carriage return in history

Jochen Sprickerhof hace 5 años
padre
commit
fa406caa11
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      scroll.c

+ 2 - 0
scroll.c

@@ -179,6 +179,8 @@ skipesc(char c)
 
 	switch (state) {
 	case CHAR:
+		if (c == '\r')
+			return true;
 		if (c == '\033')
 			state = BREK;
 		break;