lambdalisue / vim-gina

👣 Asynchronously control git repositories in Neovim/Vim 8
http://www.vim.org/scripts/script.php?script_id=5531
MIT License
689 stars 27 forks source link

Fix git instances for buffers are not cached #275

Closed Bakudankun closed 3 years ago

Bakudankun commented 3 years ago

When gina#core#get() is called, vital's git object is created but not cached, because bufexists('%') always returns 0. This PR fixes this using bufname() for the expression.