prevent spurious cursor move when not found
This commit is contained in:
parent
e4011802e3
commit
5f12ffb390
1 changed files with 3 additions and 1 deletions
4
tty.c
4
tty.c
|
|
@ -1202,7 +1202,9 @@ static void tty_term_flush(QEditScreen *s)
|
|||
}
|
||||
|
||||
TTY_FPUTS("\033[0m", s->STDOUT);
|
||||
TTY_FPRINTF(s->STDOUT, "\033[%d;%dH", ts->cursor_y + 1, ts->cursor_x + 1);
|
||||
if (ts->cursor_y + 1 >= 0 && ts->cursor_x + 1 >= 0) {
|
||||
TTY_FPRINTF(s->STDOUT, "\033[%d;%dH", ts->cursor_y + 1, ts->cursor_x + 1);
|
||||
}
|
||||
fflush(s->STDOUT);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue