mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Update to restore layout only for non-floating windows
This commit is contained in:
parent
2a618e0ad0
commit
4e49e44259
@ -4656,12 +4656,12 @@ void win_size_restore(garray_T *gap)
|
||||
{
|
||||
int i = 0;
|
||||
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
|
||||
if (wp->w_floating) {
|
||||
win_setwidth_win(((int *)gap->ga_data)[i++], wp);
|
||||
} else {
|
||||
frame_setwidth(wp->w_frame, ((int *)gap->ga_data)[i++]);
|
||||
int width = ((int *)gap->ga_data)[i++];
|
||||
int height = ((int *)gap->ga_data)[i++];
|
||||
if (!wp->w_floating) {
|
||||
frame_setwidth(wp->w_frame, width);
|
||||
win_setheight_win(height, wp);
|
||||
}
|
||||
win_setheight_win(((int *)gap->ga_data)[i++], wp);
|
||||
}
|
||||
}
|
||||
/* recompute the window positions */
|
||||
|
Loading…
Reference in New Issue
Block a user