autocmd: rename MenuPopupChanged to CompleteChanged #9819

This commit is contained in:
Qiming zhao
2019-03-31 08:15:41 +08:00
committed by Justin M. Keyes
parent c76494d8b7
commit 9e52255de2
5 changed files with 28 additions and 28 deletions

View File

@@ -2681,7 +2681,7 @@ void ins_compl_show_pum(void)
pum_display(compl_match_array, compl_match_arraysize, cur, array_changed, 0);
curwin->w_cursor.col = col;
if (!has_event(EVENT_MENUPOPUPCHANGED)) {
if (!has_event(EVENT_COMPLETECHANGED)) {
return;
}
dict_T *dict = get_vim_var_dict(VV_EVENT);
@@ -2694,7 +2694,7 @@ void ins_compl_show_pum(void)
pum_set_boundings(dict);
tv_dict_set_keys_readonly(dict);
textlock++;
apply_autocmds(EVENT_MENUPOPUPCHANGED, NULL, NULL, false, curbuf);
apply_autocmds(EVENT_COMPLETECHANGED, NULL, NULL, false, curbuf);
textlock--;
tv_dict_clear(dict);
}