From bae3c871bb6f05271adba8885b394b86ba0798a8 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 15 Jan 2021 17:08:30 +0100 Subject: term/vt/csi: break out cursor save/restore to dedicated functions --- csi.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'csi.c') diff --git a/csi.c b/csi.c index e833d2a7..c755d0af 100644 --- a/csi.c +++ b/csi.c @@ -1141,15 +1141,11 @@ csi_dispatch(struct terminal *term, uint8_t final) } case 's': - term->grid->saved_cursor = term->grid->cursor; - term->vt.saved_attrs = term->vt.attrs; - term->saved_charsets = term->charsets; + term_save_cursor(term); break; case 'u': term_restore_cursor(term, &term->grid->saved_cursor); - term->vt.attrs = term->vt.saved_attrs; - term->charsets = term->saved_charsets; break; case 't': { -- cgit v1.3