aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui.c
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro+github@gmail.com>2019-03-17 02:34:50 +0100
committerGitHub <noreply@github.com>2019-03-17 02:34:50 +0100
commit9ef8d0d6b0a8a607b2ee3fe3ca38395e470a2223 (patch)
tree725781c58344976db7f422a79307c1c6a834d65d /src/nvim/ui.c
parent7c38994ff2397772234bd89faf8b372fa9fecfbd (diff)
parentb557654f36c4c3c4352c838d0d8d1df3e5340655 (diff)
downloadrneovim-9ef8d0d6b0a8a607b2ee3fe3ca38395e470a2223.tar.gz
rneovim-9ef8d0d6b0a8a607b2ee3fe3ca38395e470a2223.tar.bz2
rneovim-9ef8d0d6b0a8a607b2ee3fe3ca38395e470a2223.zip
Merge pull request #9726 from mhinz/nvim_win_get_config
Closes #9723
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r--src/nvim/ui.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c
index d07ea3179e..0dddfe5f59 100644
--- a/src/nvim/ui.c
+++ b/src/nvim/ui.c
@@ -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