diff options
| author | Joshua Cao <33404808+caojoshua@users.noreply.github.com> | 2021-08-03 02:04:07 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-03 11:04:07 +0200 |
| commit | 5ff6f9ad070abccf57dda1011c517d14229bafbf (patch) | |
| tree | 2d855615eb53582f0b0259e65fbff60557023f3f /lua/telescope | |
| parent | b742c50bf119d7c442a553cc52e8afde0086ae02 (diff) | |
fix: git_bcommit use absolute path for current file (#1059)
Diffstat (limited to 'lua/telescope')
| -rw-r--r-- | lua/telescope/builtin/git.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/builtin/git.lua b/lua/telescope/builtin/git.lua index 513dbed..30d23b8 100644 --- a/lua/telescope/builtin/git.lua +++ b/lua/telescope/builtin/git.lua @@ -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", |
