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

Commit

Permalink
Merge pull request #275 from Bakudankun/fix-git-cache
Browse files Browse the repository at this point in the history
Fix git instances for buffers are not cached
  • Loading branch information
lambdalisue authored Sep 29, 2020
2 parents d1454a3 + 6599f60 commit 6cd15a5
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(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 6cd15a5

Please sign in to comment.