diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2024-02-04 00:42:36 +0000 |
---|---|---|
committer | Sean Dewar <6256228+seandewar@users.noreply.github.com> | 2024-03-08 22:37:31 +0000 |
commit | bcb70eeac48040fd6d6bfc20cf7fb6f41374a67c (patch) | |
tree | da257682c06ca8f8f11b5c4aac8db49649d0cd1a /runtime/lua/vim/inspect.lua | |
parent | a69c72063994f8e9064b6d9c9f280120423897b8 (diff) | |
download | rneovim-bcb70eeac48040fd6d6bfc20cf7fb6f41374a67c.tar.gz rneovim-bcb70eeac48040fd6d6bfc20cf7fb6f41374a67c.tar.bz2 rneovim-bcb70eeac48040fd6d6bfc20cf7fb6f41374a67c.zip |
fix(api): win_set_config autocmds crash when moving win to other tabpage
Problem: win_enter autocommands can close new_curwin, crashing if it was the
last window in its tabpage after removing win, or can close parent, crashing
when attempting to split it later.
Solution: remove win first, check that parent is valid after win_enter.
NOTE: This isn't actually quite right, as this means win is not in the window
list or even has a frame when triggering enter autocommands (so it's not
considered valid in the tabpage). This is addressed in later commits.
Diffstat (limited to 'runtime/lua/vim/inspect.lua')
0 files changed, 0 insertions, 0 deletions