Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug when using bclose.vim with lf.vim #8

Open
mroavi opened this issue Feb 4, 2021 · 0 comments
Open

Bug when using bclose.vim with lf.vim #8

mroavi opened this issue Feb 4, 2021 · 0 comments

Comments

@mroavi
Copy link

mroavi commented Feb 4, 2021

I noted some strange behavior while using lf.vim and opened an issue: ptzz/lf.vim#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant