diff --git a/autoload/gina/core.vim b/autoload/gina/core.vim index d2bd67f..a3859d5 100644 --- a/autoload/gina/core.vim +++ b/autoload/gina/core.vim @@ -100,7 +100,7 @@ function! s:get_cached_instance(expr) abort endfunction function! s:set_cached_instance(expr, git) abort - if bufexists(a:expr) + if bufexists(bufnr(a:expr)) call setbufvar(a:expr, 'gina', { \ 'refname': get(a:git, 'refname', ''), \ 'bufname': simplify(bufname(a:expr)),