aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/text.lua
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2024-02-04 01:50:49 +0000
committerSean Dewar <6256228+seandewar@users.noreply.github.com>2024-03-08 22:37:32 +0000
commit233649bc757743f7677b2ae414779192a94aa2ae (patch)
tree0e5d9ce3efc872bb528514cf99744ba2b120f371 /runtime/lua/vim/text.lua
parentbcb70eeac48040fd6d6bfc20cf7fb6f41374a67c (diff)
downloadrneovim-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/text.lua')
0 files changed, 0 insertions, 0 deletions