From c8dcec6f6ef1ada23dbbc30b7bfbec86da1ece75 Mon Sep 17 00:00:00 2001 From: Richard Palethorpe Date: Mon, 16 Dec 2024 12:46:52 +0000 Subject: [PATCH] sheet: Return the correct column number under the cursor --- app/sheet/handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/sheet/handlers.c b/app/sheet/handlers.c index 6dc71c25..16845ae8 100644 --- a/app/sheet/handlers.c +++ b/app/sheet/handlers.c @@ -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; }