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;
|
int i = 0;
|
||||||
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
|
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
|
||||||
if (wp->w_floating) {
|
int width = ((int *)gap->ga_data)[i++];
|
||||||
win_setwidth_win(((int *)gap->ga_data)[i++], wp);
|
int height = ((int *)gap->ga_data)[i++];
|
||||||
} else {
|
if (!wp->w_floating) {
|
||||||
frame_setwidth(wp->w_frame, ((int *)gap->ga_data)[i++]);
|
frame_setwidth(wp->w_frame, width);
|
||||||
|
win_setheight_win(height, wp);
|
||||||
}
|
}
|
||||||
win_setheight_win(((int *)gap->ga_data)[i++], wp);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* recompute the window positions */
|
/* recompute the window positions */
|
||||||
|
Loading…
Reference in New Issue
Block a user