瀏覽代碼

Shell: Fix off-by-one in EOL mark printing

Fixes #3844.
AnotherTest 4 年之前
父節點
當前提交
956e9aa736
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Shell/Shell.cpp

+ 1 - 1
Shell/Shell.cpp

@@ -1358,7 +1358,7 @@ void Shell::bring_cursor_to_beginning_of_a_line() const
 
     fputs(eol_mark.characters(), stderr);
 
-    for (auto i = 1 + eol_mark_length; i < ws.ws_col; ++i)
+    for (auto i = eol_mark_length; i < ws.ws_col; ++i)
         putc(' ', stderr);
 
     putc('\r', stderr);