Vim Tips Wiki
Advertisement

In the Bclose function, I think this line is wrong:

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

Comparing prevbuf and w makes no sense since one is a buffer number and then other a window number. Is it supposed to be prebuv != btarget?

You are correct and I put it in the tip. Thank you. JohnBeckett (talk) 06:50, December 5, 2018 (UTC)
Advertisement