bclose.vim icon indicating copy to clipboard operation
bclose.vim copied to clipboard

Bug when using bclose.vim with lf.vim

Open mroavi opened this issue 4 years ago • 0 comments

I noted some strange behavior while using lf.vim and opened an issue: https://github.com/ptzz/lf.vim/issues/14

I investigated a little and it could be that the bug is in bclose.vim.

Look at line 50 inside bclose.vim:

if prevbuf > 0 && buflisted(prevbuf) && prevbuf != w

The last condition is comparing a buffer id (prevbuf) with a window id (w), which I think is the source of the problem.

mroavi avatar Feb 04 '21 01:02 mroavi