Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lua/csvview/jump.lua
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ function M.field(bufnr, opts)
anchored_col = field.start_col
else
anchored_lnum = field.end_row
anchored_col = field.end_col - 1
local is_empty_field = field.start_row == field.end_row and field.start_col == field.end_col
anchored_col = field.end_col - (is_empty_field and 0 or 1)
if anchored_col < 0 then
anchored_col = 0
end
Expand Down