Skip to content

Commit

Permalink
sheet: Use buffer status on first display to prevent race in testing
Browse files Browse the repository at this point in the history
Allows us to wait for indexing to finish during testing without
needing to sleep to avoid matching the initial status.
  • Loading branch information
richiejp committed Dec 9, 2024
1 parent ef8bb3f commit 17e9948
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/sheet.c
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,8 @@ int ZSV_MAIN_FUNC(ZSV_COMMAND)(int argc, const char *argv[], struct zsv_opts *op
cbreak();
set_escdelay(30);
struct zsvsheet_display_dimensions display_dims = get_display_dimensions(1, 1);
if (current_ui_buffer->status)
zsvsheet_priv_set_status(&display_dims, 1, current_ui_buffer->status);
display_buffer_subtable(current_ui_buffer, header_span, &display_dims);

zsvsheet_register_builtin_procedures();
Expand Down

0 comments on commit 17e9948

Please sign in to comment.