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

Fixes #3844.
This commit is contained in:
AnotherTest 2020-10-25 18:35:49 +03:30 committed by Andreas Kling
parent 7b638e2d0d
commit 956e9aa736
Notes: sideshowbarker 2024-07-19 01:44:09 +09:00

View File

@ -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);