Skip to content

Commit

Permalink
Max, not floor
Browse files Browse the repository at this point in the history
  • Loading branch information
CKolkey committed Nov 23, 2023
1 parent ce3b82b commit 07d36ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neogit/status.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ local function handle_section_item(item)
end
end
-- adjust for diff sign column
col = math.floor(0, cursor_col - 1)
col = math.max(0, cursor_col - 1)
end

notification.delete_all()
Expand Down

0 comments on commit 07d36ed

Please sign in to comment.