From 4682f158a062dd8ede37c568c3e456aac83819fc Mon Sep 17 00:00:00 2001 From: Raphael Date: Mon, 12 Feb 2024 14:57:13 +0800 Subject: vim-patch:9.1.0098: CompleteChanged not triggered when new leader added without matches (#27436) Problem: CompleteChanged not triggered when new leader added causing no matching item in the completion menu Solution: When completion is active but no items matched still trigger CompleteChanged event (glepnir) closes: vim/vim#13982 https://github.com/vim/vim/commit/0d3c0a66a39570cbc52b9536604c39e324b989b3 Fix #15077 --- src/nvim/insexpand.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/nvim/insexpand.c b/src/nvim/insexpand.c index 2f54250392..9d3b400496 100644 --- a/src/nvim/insexpand.c +++ b/src/nvim/insexpand.c @@ -1279,6 +1279,9 @@ void ins_compl_show_pum(void) } if (compl_match_array == NULL) { + if (compl_started && has_event(EVENT_COMPLETECHANGED)) { + trigger_complete_changed_event(cur); + } return; } -- cgit