]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0118: Use different restoration strategy in win_splitmove v9.1.0118
authorSean Dewar <6256228+seandewar@users.noreply.github.com>
Tue, 20 Feb 2024 21:00:33 +0000 (22:00 +0100)
committerChristian Brabandt <cb@256bit.org>
Tue, 20 Feb 2024 21:00:33 +0000 (22:00 +0100)
commit704966c2545897dfcf426dd9ef946aeb6fa80c38
treea885bfc35d182242ca75d1a000638e97b72d6f08
parent96cc4aef3d47d0fd70e68908af3d48a0dce8ea70
patch 9.1.0118: Use different restoration strategy in win_splitmove

Problem:  saving and restoring all frames to split-move is overkill now
          that WinNewPre is not fired when split-moving.
Solution: defer the flattening of frames until win_split_ins begins
          reorganising them, and attempt to restore the layout by
          undoing our changes. (Sean Dewar)

This also means we no longer must allocate.

related: #14042

Signed-off-by: Sean Dewar <6256228+seandewar@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/autocmd.c
src/proto/window.pro
src/version.c
src/window.c