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

bug fix: `split #` fails if the filename of `#` is empty #223

Closed resolritter closed 5 years ago

resolritter commented 5 years ago

closes #211

When you try to split # and bufname('#') is empty, Neovim will throw this exception:

E499: Empty file name for '%' or '#', only works with "p:h"

This PR adds and extra check for empty filenames before trying to split #.

resolritter commented 5 years ago

There you go @lambdalisue

lambdalisue commented 5 years ago

Thank you 👍