mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-23 17:28:57 +02:00
fix(git): off-by-one issue in lazygit blame line (#3230)
This commit is contained in:
parent
e346d17812
commit
4208a09df8
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ function M.blame_line(opts)
|
|||
border = "rounded",
|
||||
}, opts or {})
|
||||
local cursor = vim.api.nvim_win_get_cursor(0)
|
||||
local line = cursor[1] - 1
|
||||
local line = cursor[1]
|
||||
local file = vim.api.nvim_buf_get_name(0)
|
||||
local cmd = { "git", "log", "-n", opts.count, "-u", "-L", line .. ",+1:" .. file }
|
||||
return require("lazy.util").float_cmd(cmd, opts)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue