Selaa lähdekoodia

Ignore carriage return in history

Jochen Sprickerhof 5 vuotta sitten
vanhempi
commit
fa406caa11
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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;