Bekaboo / dropbar.nvim

IDE-like breadcrumbs, out of the box
GNU General Public License v3.0
990 stars 23 forks source link

fix: check if win is valid before updating #59

Closed willothy closed 1 year ago

willothy commented 1 year ago

Related to #32, but with a less dirty fix.

The issue is not just with edgy.nvim, it seems to be a problem with many plugins that animate window movement. Whenever a window is closed closed mid-animation, it can become invalid in between the time that the window list is fetched and the time each window is updated because of the frequency of WinResized andWinEnter autocmds. I don't want to disable those update events, and it may be an edge case but I think it's important to handle.

Bekaboo commented 1 year ago

Could you submit a bug report regarding to this, with minimal config and steps to reproduce?

willothy commented 1 year ago

Could you submit a bug report regarding to this, with minimal config and steps to reproduce?

Sure, I'll see if I can do that later today.

willothy commented 1 year ago

My bad, totally forgot about this, but I haven't had this issue in a while so I don't think this PR is needed.