Sfoglia il codice sorgente

Ignore carriage return in history

Jochen Sprickerhof 5 anni fa
parent
commit
fa406caa11
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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;