francoiscabrol/ranger.vim

kills non ranger buffer

Closed this issue · 5 comments

when i run :bd in the ranger term buffer it closes the ranger buffer and then it runs :bd again on another buffer

https://github.com/francoiscabrol/ranger.vim/blob/master/plugin/ranger.vim#L31

you should quit ranger by pressing q. Does it solve your problem?

q works but :bd doesnt

I guess we could fix the problem with :bd by checking in the rangerCallback.on_exit function if the buffer if already closed and not executing silent! Bclose! in this case

yeah that would be great

i don't know much vimscript but maybe the exitcodes could also be used.

yes the exit code will be 1 instead of 0