Ver Fonte

Revert "Revert "Ignore carriage return in history""

This reverts commit 1dfa7e759525944d50614caf96ce0acf8b52abeb.
Jochen Sprickerhof há 5 anos atrás
pai
commit
0e8130becf
1 ficheiros alterados com 2 adições e 0 exclusões
  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;