From 89559d5466502176995720a33316714012a638d1 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 16 Apr 2020 18:51:14 +0200 Subject: grid: move 'cursor' state from terminal to grid This way, the 'normal' and 'alt' grids have their own cursor state, and we don't need to switch between them. --- terminal.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index 40088b04..7b7b0182 100644 --- a/terminal.h +++ b/terminal.h @@ -101,6 +101,9 @@ struct grid { int offset; int view; + struct cursor cursor; + struct cursor saved_cursor; + struct row **rows; struct row *cur_row; @@ -278,9 +281,6 @@ struct terminal { } colors; enum cursor_origin origin; - struct cursor cursor; - struct cursor saved_cursor; - struct cursor alt_saved_cursor; enum cursor_style default_cursor_style; enum cursor_style cursor_style; struct { -- cgit v1.3