fix: git_bcommit use absolute path for current file (#1059)

This commit is contained in:
Joshua Cao
2021-08-03 02:04:07 -07:00
committed by GitHub
parent b742c50bf1
commit 5ff6f9ad07

View File

@@ -108,7 +108,7 @@ end
git.bcommits = function(opts)
opts.current_line = not opts.current_file and get_current_buf_line(0) or nil
opts.current_file = opts.current_file or vim.fn.expand "%"
opts.current_file = opts.current_file or vim.fn.expand "%:p"
local results = utils.get_os_command_output({
"git",
"log",