Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Use bufnr() instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Bakudankun committed Sep 29, 2020
1 parent 3bfe7d4 commit 6599f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/gina/core.vim
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function! s:get_cached_instance(expr) abort
endfunction

function! s:set_cached_instance(expr, git) abort
if bufexists(bufname(a:expr))
if bufexists(bufnr(a:expr))
call setbufvar(a:expr, 'gina', {
\ 'refname': get(a:git, 'refname', ''),
\ 'bufname': simplify(bufname(a:expr)),
Expand Down

0 comments on commit 6599f60

Please sign in to comment.