mcchrish / nnn.vim

File manager for vim/neovim powered by n³
BSD 2-Clause "Simplified" License
646 stars 25 forks source link

Add try/catch for E211 #75

Closed TomBaxter closed 4 years ago

TomBaxter commented 4 years ago

In the case that nnn is used to remove a file while that file is in an active buffer, Vim will raise E211 with trace on reentry from nnn. The trace is somewhat of an eye sore but the E211 message is useful. This PR adds a try catch for E211, removes the trace and reraises E211.

Fixes: #41

TomBaxter commented 4 years ago

Ha, sorry about that. Please ignore.