aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/winfloat.c
diff options
context:
space:
mode:
authorSean Dewar <6256228+seandewar@users.noreply.github.com>2024-02-25 01:03:26 +0000
committerSean Dewar <6256228+seandewar@users.noreply.github.com>2024-03-08 23:24:04 +0000
commit1c6b693ec1592f9d193fc9cc1bb03e738fb2bef6 (patch)
tree9771486507e8955b3e1f906c4a150c938040ca0f /src/nvim/winfloat.c
parent24dfa47e4f4ca41d0c5f8c1c0f851602362c81d3 (diff)
downloadrneovim-1c6b693ec1592f9d193fc9cc1bb03e738fb2bef6.tar.gz
rneovim-1c6b693ec1592f9d193fc9cc1bb03e738fb2bef6.tar.bz2
rneovim-1c6b693ec1592f9d193fc9cc1bb03e738fb2bef6.zip
vim-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) https://github.com/vim/vim/commit/704966c2545897dfcf426dd9ef946aeb6fa80c38 Adjust winframe_restore to account for Nvim's horizontal separators when the global statusline is in use. Add a test.
Diffstat (limited to 'src/nvim/winfloat.c')
-rw-r--r--src/nvim/winfloat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/winfloat.c b/src/nvim/winfloat.c
index 8fe0315230..cddc4ed9dd 100644
--- a/src/nvim/winfloat.c
+++ b/src/nvim/winfloat.c
@@ -57,7 +57,7 @@ win_T *win_new_float(win_T *wp, bool last, WinConfig fconfig, Error *err)
return NULL;
}
int dir;
- winframe_remove(wp, &dir, NULL);
+ winframe_remove(wp, &dir, NULL, NULL);
XFREE_CLEAR(wp->w_frame);
win_comp_pos(); // recompute window positions
win_remove(wp, NULL);