fix invalid winid in Popup:_open_window#367
fix invalid winid in Popup:_open_window#367konosubakonoakua wants to merge 1 commit intoMunifTanjim:mainfrom
Conversation
winid is not nil, not meaning it is valid.
Can you give me an example where this could happen? 🤔 There is a nui.nvim/lua/nui/popup/init.lua Lines 233 to 240 in a3597dc |
It's hard to tell, mostly with neotree open and several horizontal windows, after |
|
found something in neovim repo, not sure related or not. |
I don't think that's related to
Can you post that here? or maybe a recording? so that I can understand the issue better. |
...x/.local/share/nvim/lazy/nui.nvim/lua/nui/popup/init.lua:168: Invalid window id: 1173I just triggered this issue with this patch, this pr is not working. 😭 |
|
First step of solving it would be to find out how to reproduce it consistently. |
|
I don't really have the time currently to further investigate why it's happening, but here is a way to consistently reproduce the issue using the
If I do |
winid is not nil, not meaning it is valid.