diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-20 18:17:57 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-20 18:17:57 +0200 |
commit | dca7abe79cc4f0933473c3e4bcc75b46cc2c48fd (patch) | |
tree | 577964fff695a536bc2d957889e74a2f9f087290 /src/popupwin.c | |
parent | 88d3d09e07dbe0e3ea450bc554e2aadc451450d2 (diff) | |
download | vim-git-dca7abe79cc4f0933473c3e4bcc75b46cc2c48fd.tar.gz |
patch 8.1.2192: cannot easily fill the info popup asynchronouslyv8.1.2192
Problem: Cannot easily fill the info popup asynchronously.
Solution: Add the "popuphidden" value to 'completeopt'. (closes #4924)
Diffstat (limited to 'src/popupwin.c')
-rw-r--r-- | src/popupwin.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/popupwin.c b/src/popupwin.c index f9c127a6c..95435f8fe 100644 --- a/src/popupwin.c +++ b/src/popupwin.c @@ -2225,7 +2225,7 @@ f_popup_close(typval_T *argvars, typval_T *rettv UNUSED) popup_close_and_callback(wp, &argvars[1]); } - static void + void popup_hide(win_T *wp) { if ((wp->w_popup_flags & POPF_HIDDEN) == 0) @@ -2272,7 +2272,11 @@ f_popup_show(typval_T *argvars, typval_T *rettv UNUSED) win_T *wp = find_popup_win(id); if (wp != NULL) + { popup_show(wp); + if (wp->w_popup_flags & POPF_INFO) + pum_position_info_popup(wp); + } } /* |