aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/ui.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-05-18 21:18:34 +0200
committerGitHub <noreply@github.com>2022-05-18 21:18:34 +0200
commit6f0baa0bb7a57ec4451047876321eb6f24130b10 (patch)
tree4257741199bb61a7fc76b6f794445b6f74b85a16 /src/nvim/api/ui.c
parent3eea66d65a75c83cbd6bd7ec2aa0886781c807c9 (diff)
parent503d8b0892dbfee2d69286574f7eba3708b9a902 (diff)
downloadrneovim-6f0baa0bb7a57ec4451047876321eb6f24130b10.tar.gz
rneovim-6f0baa0bb7a57ec4451047876321eb6f24130b10.tar.bz2
rneovim-6f0baa0bb7a57ec4451047876321eb6f24130b10.zip
Merge pull request #18620 from bfredl/multibar
fix(ui): make winbar work with floats and multigrid
Diffstat (limited to 'src/nvim/api/ui.c')
-rw-r--r--src/nvim/api/ui.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/api/ui.c b/src/nvim/api/ui.c
index b4d20ed975..52f76f4650 100644
--- a/src/nvim/api/ui.c
+++ b/src/nvim/api/ui.c
@@ -349,7 +349,11 @@ void nvim_ui_try_resize_grid(uint64_t channel_id, Integer grid, Integer width, I
return;
}
- ui_grid_resize((handle_T)grid, (int)width, (int)height, err);
+ if (grid == DEFAULT_GRID_HANDLE) {
+ nvim_ui_try_resize(channel_id, width, height, err);
+ } else {
+ ui_grid_resize((handle_T)grid, (int)width, (int)height, err);
+ }
}
/// Tells Nvim the number of elements displaying in the popumenu, to decide