fix: move state declaration before first use in draw_grid
Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
4
tui.c
4
tui.c
@@ -806,6 +806,8 @@ static void draw_cell(int grid, int row, int col, bool selected) {
|
|||||||
static void draw_grid(void) {
|
static void draw_grid(void) {
|
||||||
clear();
|
clear();
|
||||||
|
|
||||||
|
AppState state = dispatcher_get_state();
|
||||||
|
|
||||||
if (zoom_mode) {
|
if (zoom_mode) {
|
||||||
// Draw grid selector overview
|
// Draw grid selector overview
|
||||||
attron(A_BOLD);
|
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 row = 0; row < GRID_ROWS; row++) {
|
||||||
for (int col = 0; col < GRID_COLS; col++) {
|
for (int col = 0; col < GRID_COLS; col++) {
|
||||||
bool selected = (row == selected_row && col == selected_col);
|
bool selected = (row == selected_row && col == selected_col);
|
||||||
|
|||||||
Reference in New Issue
Block a user