diff options
author | glepnir <glephunter@gmail.com> | 2024-02-11 17:52:40 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-02-11 17:52:40 +0100 |
commit | 0d3c0a66a39570cbc52b9536604c39e324b989b3 (patch) | |
tree | 786f5f41c0f365793c89dbf60c1457cabab492cb /src/insexpand.c | |
parent | efabd7c8d4f733350364356b8950a11f013aec49 (diff) |
patch 9.1.0098: CompletionChanged not triggered when new leader added without matchesv9.1.0098
Problem: CompletionChanged 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
CompletChanged event
(glepnir)
closes: #13982
Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/insexpand.c')
-rw-r--r-- | src/insexpand.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/insexpand.c b/src/insexpand.c index d712181bcd..68e970a71a 100644 --- a/src/insexpand.c +++ b/src/insexpand.c @@ -1350,7 +1350,13 @@ ins_compl_show_pum(void) } if (compl_match_array == NULL) + { +#ifdef FEAT_EVAL + if (compl_started && has_completechanged()) + trigger_complete_changed_event(cur); +#endif return; + } // In Replace mode when a $ is displayed at the end of the line only // part of the screen would be updated. We do need to redraw here. |