Skip to content

Commit

Permalink
Merge junegunn#48
Browse files Browse the repository at this point in the history
  • Loading branch information
somini committed Dec 9, 2020
2 parents e450550 + a85c1e4 commit dc94bad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugin/gv.vim
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,11 @@ function! s:list(fugitive_repo, log_opts)
let git_args = ['log'] + default_opts + a:log_opts
let git_log_cmd = call(a:fugitive_repo.git_command, git_args, a:fugitive_repo)

let repo_short_name = fnamemodify(substitute(a:fugitive_repo.dir(), '[\\/]\.git[\\/]\?$', '', ''), ':t')
let repo_short_name = fnamemodify(a:fugitive_repo.tree(), ':t')
let b:gv = {
\ 'opts': a:log_opts,
\ 'repo_short_name': repo_short_name,
\ }
let bufname = repo_short_name.' '.join(a:log_opts)
silent exe (bufexists(bufname) ? 'buffer' : 'file') fnameescape(bufname)

Expand Down

0 comments on commit dc94bad

Please sign in to comment.