wincent / command-t

⌨️ Fast file navigation for Neovim and Vim
BSD 2-Clause "Simplified" License
2.74k stars 317 forks source link

deleting a buffer closes the finder window #357

Closed etherandrius closed 5 years ago

etherandrius commented 5 years ago

Currently if you delete the buffer the finder window is not closed and almost any action post deletion throws errors as the list is not correctly updated. Closing the list after a deletion is a convenient and easy way to fix this issue.

wincent commented 5 years ago

Thanks for the PR @etherandrius. I never really used the buffer deletion feature myself, so I hadn't noticed the breakage. I can imagine people might want the window to stay open, and maybe we could achieve that by closing it and re-opening it, but in the meantime I think merging this PR is fine because not-broken is better than broken in any case.