Skip to content

Commit

Permalink
sheet: Return the correct column number under the cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
richiejp committed Dec 16, 2024
1 parent 4297223 commit c8dcec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/sheet/handlers.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ zsvsheet_status zsvsheet_buffer_get_selected_cell(zsvsheet_buffer_t h, struct zs
if (!uib)
return zsvsheet_status_error;
rc->row = uib->cursor_row + uib->input_offset.row + uib->buff_offset.row;
rc->col = uib->cursor_col + uib->input_offset.col + uib->buff_offset.row;
rc->col = uib->cursor_col + uib->input_offset.col + uib->buff_offset.col;
return zsvsheet_status_ok;
}

Expand Down

0 comments on commit c8dcec6

Please sign in to comment.