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

Commit 6cd15a5

Browse files
authored
Merge pull request #275 from Bakudankun/fix-git-cache
Fix git instances for buffers are not cached
2 parents d1454a3 + 6599f60 commit 6cd15a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/gina/core.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function! s:get_cached_instance(expr) abort
100100
endfunction
101101

102102
function! s:set_cached_instance(expr, git) abort
103-
if bufexists(a:expr)
103+
if bufexists(bufnr(a:expr))
104104
call setbufvar(a:expr, 'gina', {
105105
\ 'refname': get(a:git, 'refname', ''),
106106
\ 'bufname': simplify(bufname(a:expr)),

0 commit comments

Comments
 (0)