ui_grid_resize: fix resize logic for floating window #11655

This commit is contained in:
Ville Hakulinen
2020-01-07 08:03:15 +02:00
committed by Justin M. Keyes
parent 4a7d84ae60
commit 013436c997

View File

@@ -505,7 +505,7 @@ void ui_grid_resize(handle_T grid_handle, int width, int height, Error *error)
} }
if (wp->w_floating) { if (wp->w_floating) {
if (width != wp->w_width && height != wp->w_height) { if (width != wp->w_width || height != wp->w_height) {
wp->w_float_config.width = width; wp->w_float_config.width = width;
wp->w_float_config.height = height; wp->w_float_config.height = height;
win_config_float(wp, wp->w_float_config); win_config_float(wp, wp->w_float_config);