Parcourir la source

return carriage at the beginning of the history line

Jochen Sprickerhof il y a 5 ans
Parent
commit
8d689bf06a
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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) {