Ver Fonte

Ignore carriage return in history

Jochen Sprickerhof há 5 anos atrás
pai
commit
fa406caa11
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;