mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 15:28:17 +00:00
ui_grid_resize: fix resize logic for floating window #11655
This commit is contained in:

committed by
Justin M. Keyes

parent
4a7d84ae60
commit
013436c997
@@ -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);
|
||||||
|
Reference in New Issue
Block a user