chrisbra / Recover.vim

A Plugin to show a diff, whenever recovering a buffer
http://www.vim.org/scripts/script.php?script_id=3068
248 stars 25 forks source link

Fix bug where the '(D)elete' option wouldn't show in neovim #44

Closed glacambre closed 7 years ago

glacambre commented 7 years ago

Because the script uses executable('vim') to check various things, the option to delete the swap file wasn't available on systems where Neovim is installed but vim isn't. This commit fixes this bug.

chrisbra commented 7 years ago

wouldn't it be better to check for v:progpath?

glacambre commented 7 years ago

You're probably right. I thought there was a specific reason for checking especially for "vim" and not v:progpath. The last commit implements your suggestion.

chrisbra commented 7 years ago

The reason was, that variable didn't exists back when I wrote the script ;) Please squash.

glacambre commented 7 years ago

Done! :)

chrisbra commented 7 years ago

thanks!