diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-03-16 11:00:25 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-03-16 11:00:25 +0000 |
| commit | 1006608093fbbe19103f63fc1140b122a3904500 (patch) | |
| tree | ec31e9643e7d6debd54c0250afa174ce71fa76e6 /vt.c | |
| parent | wayland: add FDs to FDM as soon as the FDs are ready (diff) | |
alt-screen: use a custom 'saved' cursor when switching to alt screen
This fixes an issue where we failed to restore the cursor correctly
when exiting from the alternate screen, if the client had sent escapes
to save the cursor position while inside the alternate screen.
This was because we used the *same* storage for saving the cursor
position through escapes, as for saving it when entering the alternate
screen.
Fix by using a custom variable dedicated to normal <--> alt screen
switching.
Diffstat (limited to 'vt.c')
| -rw-r--r-- | vt.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -347,7 +347,7 @@ action_esc_dispatch(struct terminal *term, uint8_t final) break; case '8': - term_restore_cursor(term); + term_restore_cursor(term, &term->saved_cursor); term->vt.attrs = term->vt.saved_attrs; term->charsets = term->saved_charsets; break; |
