Skip to content

Commit

Permalink
Fix virtcol() for older versions of vim
Browse files Browse the repository at this point in the history
  • Loading branch information
rbong committed Sep 23, 2024
1 parent 9b791a1 commit bcc9b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/flog/highlight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function M.nvim_get_graph_hl_callback(buffer, instance_number)
-- Get line/col
local start_line = vim.fn.line('w0', winid)
local end_line = vim.fn.line('w$', winid)
local start_col = vim.fn.virtcol('.', 0) - wincol + 1
local start_col = vim.fn.virtcol('.') - wincol + 1
local end_col = start_col + vim.fn.winwidth(0) - 1

-- Get start/end branch index from screen position/size
Expand Down

0 comments on commit bcc9b23

Please sign in to comment.