mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-03 07:15:29 -04:00
term: make sure to update 'current row' when restoring saved cursor
This commit is contained in:
parent
f7519b5725
commit
f5a6304850
4 changed files with 20 additions and 3 deletions
|
|
@ -267,6 +267,14 @@ term_reverse_index(struct terminal *term)
|
|||
term_cursor_up(term, 1);
|
||||
}
|
||||
|
||||
void
|
||||
term_restore_cursor(struct terminal *term)
|
||||
{
|
||||
int row = min(term->saved_cursor.row, term->rows - 1);
|
||||
int col = min(term->saved_cursor.col, term->cols - 1);
|
||||
term_cursor_to(term, row, col);
|
||||
}
|
||||
|
||||
void
|
||||
term_focus_in(struct terminal *term)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue