diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-09-08 20:42:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-08 20:42:32 +0200 |
commit | 288526ae73d07471a484e3f5bd9662b1cecf0884 (patch) | |
tree | 33a003885c6eb51dc4296eb026bf8b54cc7c7629 /src/nvim/ui.c | |
parent | 83632022f84e4addf9518bf9913cc58b2ae41820 (diff) | |
parent | 55b1126a22394a3c6c212cc323d53de405cca98d (diff) | |
download | rneovim-288526ae73d07471a484e3f5bd9662b1cecf0884.tar.gz rneovim-288526ae73d07471a484e3f5bd9662b1cecf0884.tar.bz2 rneovim-288526ae73d07471a484e3f5bd9662b1cecf0884.zip |
Merge pull request #10475 from erw7/fix-ext-popupmenu
Fix some keys not working in ext_popupmenu
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r-- | src/nvim/ui.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c index d8c9a3e780..25077675bf 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -221,6 +221,19 @@ void ui_refresh(void) ui_cursor_shape(); } +int ui_pum_get_height(void) +{ + int pum_height = 0; + for (size_t i = 1; i < ui_count; i++) { + int ui_pum_height = uis[i]->pum_height; + if (ui_pum_height) { + pum_height = + pum_height != 0 ? MIN(pum_height, ui_pum_height) : ui_pum_height; + } + } + return pum_height; +} + static void ui_refresh_event(void **argv) { ui_refresh(); |