Explorar o código

return carriage at the beginning of the history line

Jochen Sprickerhof %!s(int64=5) %!d(string=hai) anos
pai
achega
8d689bf06a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      scroll.c

+ 1 - 0
scroll.c

@@ -582,6 +582,7 @@ main(int argc, char *argv[])
 
 					memset(buf, 0, size);
 					pos = 0;
+					buf[pos++] = '\r';
 				}
 				buf[pos++] = *c;
 				if (pos == size) {