浏览代码

return carriage at the beginning of the history line

Jochen Sprickerhof 5 年之前
父节点
当前提交
8d689bf06a
共有 1 个文件被更改,包括 1 次插入0 次删除
  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) {