readline: Fix issue arising from terminal's wraparound handling fix

This commit is contained in:
mintsuki 2022-11-19 08:04:17 +01:00
parent 1c0db86965
commit 104e0c5ef1
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ void readline(const char *orig_str, char *buf, size_t limit) {
// If cursor has wrapped around, move the line start position up one row
if (prev_x == term->cols - 1 && prev_y == term->rows - 1) {
orig_y--;
print("\e[J"); // Clear the bottom line
print("\n\e[J"); // Clear the bottom line
}
}
}