Fix final char of line not overwriting

This commit is contained in:
Aaron Merey
2022-02-04 15:08:51 -05:00
parent d43bc9260d
commit 30e62ce67e

View File

@@ -410,10 +410,10 @@ cli_ui_out::clear_current_line ()
chars_per_line = MAX_CHARS_PER_LINE;
int i;
int width = chars_per_line - 3;
int width = chars_per_line;
fprintf_unfiltered (stream, "\r");
for (i = 0; i < width + 2; ++i)
for (i = 0; i < width; ++i)
fprintf_unfiltered (stream, " ");
fprintf_unfiltered (stream, "\r");