kills non ranger buffer
Closed this issue · 5 comments
plexigras commented
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
francoiscabrol commented
you should quit ranger by pressing q
. Does it solve your problem?
plexigras commented
q
works but :bd
doesnt
francoiscabrol commented
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
plexigras commented
yeah that would be great
i don't know much vimscript but maybe the exitcodes could also be used.
francoiscabrol commented
yes the exit code will be 1 instead of 0