From 956e9aa73671575a44076791e797679cb09f5028 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Sun, 25 Oct 2020 18:35:49 +0330 Subject: [PATCH] Shell: Fix off-by-one in EOL mark printing Fixes #3844. --- Shell/Shell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shell/Shell.cpp b/Shell/Shell.cpp index 3d6f90e63e..36899a30f4 100644 --- a/Shell/Shell.cpp +++ b/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);