comparison src/popupwin.c @ 18396:ba5d8c5d77d7 v8.1.2192

patch 8.1.2192: cannot easily fill the info popup asynchronously Commit: https://github.com/vim/vim/commit/dca7abe79cc4f0933473c3e4bcc75b46cc2c48fd Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 20 18:17:57 2019 +0200 patch 8.1.2192: cannot easily fill the info popup asynchronously Problem: Cannot easily fill the info popup asynchronously. Solution: Add the "popuphidden" value to 'completeopt'. (closes https://github.com/vim/vim/issues/4924)
author Bram Moolenaar <Bram@vim.org>
date Sun, 20 Oct 2019 18:30:04 +0200
parents a776385eac9f
children 21c25bee9df8
comparison
equal deleted inserted replaced
18395:dbfbbb32cf07 18396:ba5d8c5d77d7
2223 2223
2224 if (wp != NULL) 2224 if (wp != NULL)
2225 popup_close_and_callback(wp, &argvars[1]); 2225 popup_close_and_callback(wp, &argvars[1]);
2226 } 2226 }
2227 2227
2228 static void 2228 void
2229 popup_hide(win_T *wp) 2229 popup_hide(win_T *wp)
2230 { 2230 {
2231 if ((wp->w_popup_flags & POPF_HIDDEN) == 0) 2231 if ((wp->w_popup_flags & POPF_HIDDEN) == 0)
2232 { 2232 {
2233 wp->w_popup_flags |= POPF_HIDDEN; 2233 wp->w_popup_flags |= POPF_HIDDEN;
2270 { 2270 {
2271 int id = (int)tv_get_number(argvars); 2271 int id = (int)tv_get_number(argvars);
2272 win_T *wp = find_popup_win(id); 2272 win_T *wp = find_popup_win(id);
2273 2273
2274 if (wp != NULL) 2274 if (wp != NULL)
2275 {
2275 popup_show(wp); 2276 popup_show(wp);
2277 if (wp->w_popup_flags & POPF_INFO)
2278 pum_position_info_popup(wp);
2279 }
2276 } 2280 }
2277 2281
2278 /* 2282 /*
2279 * popup_settext({id}, {text}) 2283 * popup_settext({id}, {text})
2280 */ 2284 */