Skip to content

Conversation

@mawkler
Copy link
Contributor

@mawkler mawkler commented May 3, 2022

display.close previously closed Neovim if there were no other windows

@wbthomason
Copy link
Owner

Thanks, and sorry for taking so long to get to this! Do you have an easy reproduction example? I haven't encountered this behavior before.

Separately, though I think it's probably wise to move to api.nvim_win_close regardless, I would feel more comfortable if we stored and used the display window ID rather than relying on the display window being the current window (i.e. by passing 0)

@mawkler
Copy link
Contributor Author

mawkler commented Jul 26, 2022

Do you have an easy reproduction example?

  1. Open a Packer window for instance using :PackerStatus
  2. Close all other windows using <C-w><C-o>
  3. Close Packer window by pressing q

@mawkler
Copy link
Contributor Author

mawkler commented Jul 26, 2022

I would feel more comfortable if we stored and used the display window ID

I'm not sure exactly how you want this to be implemented, but feel free to add a commit that fixes this and/or elaborate :)

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

Successfully merging this pull request may close these issues.

2 participants