diff --git a/tui.c b/tui.c index d29a664..c635237 100644 --- a/tui.c +++ b/tui.c @@ -806,6 +806,8 @@ static void draw_cell(int grid, int row, int col, bool selected) { static void draw_grid(void) { clear(); + AppState state = dispatcher_get_state(); + if (zoom_mode) { // Draw grid selector overview attron(A_BOLD); @@ -864,8 +866,6 @@ static void draw_grid(void) { } } - AppState state = dispatcher_get_state(); - for (int row = 0; row < GRID_ROWS; row++) { for (int col = 0; col < GRID_COLS; col++) { bool selected = (row == selected_row && col == selected_col);