diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2024-02-04 01:50:49 +0000 |
---|---|---|
committer | Sean Dewar <6256228+seandewar@users.noreply.github.com> | 2024-03-08 22:37:32 +0000 |
commit | 233649bc757743f7677b2ae414779192a94aa2ae (patch) | |
tree | 0e5d9ce3efc872bb528514cf99744ba2b120f371 /runtime/lua/vim/_defaults.lua | |
parent | bcb70eeac48040fd6d6bfc20cf7fb6f41374a67c (diff) | |
download | rneovim-233649bc757743f7677b2ae414779192a94aa2ae.tar.gz rneovim-233649bc757743f7677b2ae414779192a94aa2ae.tar.bz2 rneovim-233649bc757743f7677b2ae414779192a94aa2ae.zip |
fix(api): win_set_config fires unnecessary autocmds
Problem: win_set_config should have the observable effect of moving an existing
window to another place, but instead fires autocommands as if a new window was
created and entered (and does not fire autocommands reflecting a "return" to the
original window).
Solution: do not fire win_enter-related autocommands when splitting the window,
but continue to fire them when entering the window that fills the new space when
moving a window to a different tabpage, as the new curwin changes.
Also, remove "++once" from the WinEnter autocmd in the other test, as omitting
it also crashed Nvim before this fix.
Diffstat (limited to 'runtime/lua/vim/_defaults.lua')
0 files changed, 0 insertions, 0 deletions