mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
autocmd: rename MenuPopupChanged to CompleteChanged #9819
This commit is contained in:

committed by
Justin M. Keyes

parent
c76494d8b7
commit
9e52255de2
@@ -29,6 +29,7 @@ return {
|
||||
'CmdWinLeave', -- before leaving the cmdline window
|
||||
'ColorScheme', -- after loading a colorscheme
|
||||
'ColorSchemePre', -- before loading a colorscheme
|
||||
'CompleteChanged', -- after popup menu changed
|
||||
'CompleteDone', -- after finishing insert complete
|
||||
'CursorHold', -- cursor in same position for a while
|
||||
'CursorHoldI', -- idem, in Insert mode
|
||||
@@ -66,7 +67,6 @@ return {
|
||||
'InsertLeave', -- when leaving Insert mode
|
||||
'JobActivity', -- when job sent some data
|
||||
'MenuPopup', -- just before popup menu is displayed
|
||||
'MenuPopupChanged', -- after popup menu changed
|
||||
'OptionSet', -- after setting any option
|
||||
'QuickFixCmdPost', -- after :make, :grep etc.
|
||||
'QuickFixCmdPre', -- before :make, :grep etc.
|
||||
|
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user