api: add width/height to FloatConfig

This commit is contained in:
Marco Hinz
2019-03-15 18:03:12 +01:00
parent 3c88bbecb8
commit 96edbe7b1d
6 changed files with 83 additions and 58 deletions

View File

@@ -460,7 +460,9 @@ void ui_grid_resize(handle_T grid_handle, int width, int height, Error *error)
if (wp->w_floating) {
if (width != wp->w_width && height != wp->w_height) {
win_config_float(wp, (int)width, (int)height, wp->w_float_config);
wp->w_float_config.width = width;
wp->w_float_config.height = height;
win_config_float(wp, wp->w_float_config);
}
} else {
// non-positive indicates no request