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

closing file buffer makes vim exit if quick fix window is open #126

Open
ucarbehlul opened this issue Mar 9, 2022 · 1 comment
Open
Labels

Comments

@ucarbehlul
Copy link

ucarbehlul commented Mar 9, 2022

When viewing a buffer with quick fix window open and has an entry in it, if I close the buffer with :bunload vim quits. I am expecting vim to not quit and go to the next buffer instead.

Doesn't look like there was a crash from the log line, maybe it was deliberately closed by a plugin? Last lines from the log file are as follows:

Executing BufUnload Autocommands for "*"
autocommand call airline#extensions#tabline#buflist#invalidate()

Executing BufUnload Autocommands for "*"
autocommand call s:OnBufferUnload()

Executing BufUnload Autocommands for "*"
autocommand call <sid>on_window_changed()

Executing BufUnload Autocommands for "*"
autocommand call airline#extensions#tabline#buflist#invalidate()

Executing BufUnload Autocommands for "*"
autocommand call s:OnBufferUnload()

Executing BufUnload Autocommands for "*"
autocommand call <sid>on_window_changed()

Executing BufUnload Autocommands for "*"
autocommand call airline#extensions#tabline#buflist#invalidate()

Executing BufUnload Autocommands for "*"
autocommand call s:OnBufferUnload()

Executing VimLeavePre Autocommands for "*"
autocommand cal s:savetofile(s:mergelists())

Executing VimLeavePre Autocommands for "*"
autocommand cal s:leavepre()

Writing viminfo file "/Users/behlul/.viminfo"
Executing VimLeave Autocommands for "*"
autocommand call s:OnVimLeave()
@romainl
Copy link
Owner

romainl commented Mar 9, 2022

I don't think any of those line is related to vim-qf but your expectations are perfectly reasonable. The plugin indeed has a mechanism for quitting Vim if the last window is a quickfix window but it is probably a bit dumb.

I will take a look at it when I get a chance.

Thanks.

@romainl romainl added the bug label Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants