aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQiming zhao <chemzqm@gmail.com>2019-03-31 08:15:41 +0800
committerJustin M. Keyes <justinkz@gmail.com>2019-03-31 01:15:41 +0100
commit9e52255de2a0318fe7fff6d46c7bf60e217bb558 (patch)
tree64829673177ff537d99e048f688cdb3beb178890 /src
parentc76494d8b745065793a604a5aefc0cb2b792b01e (diff)
downloadrneovim-9e52255de2a0318fe7fff6d46c7bf60e217bb558.tar.gz
rneovim-9e52255de2a0318fe7fff6d46c7bf60e217bb558.tar.bz2
rneovim-9e52255de2a0318fe7fff6d46c7bf60e217bb558.zip
autocmd: rename MenuPopupChanged to CompleteChanged #9819
Diffstat (limited to 'src')
-rw-r--r--src/nvim/auevents.lua2
-rw-r--r--src/nvim/edit.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/auevents.lua b/src/nvim/auevents.lua
index 345bf67c0e..32a7920b6e 100644
--- a/src/nvim/auevents.lua
+++ b/src/nvim/auevents.lua
@@ -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.
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index acb03a606d..7b31fa0c76 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -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);
}