diff options
author | glepnir <glephunter@gmail.com> | 2024-05-27 15:11:01 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-05-27 15:14:51 +0200 |
commit | 53387c55a13bc1013a6ab721d4bd0bd04c6935c4 (patch) | |
tree | 848aa717c906b8a9f40ec0a5b8e2d4c74544d222 /src/insexpand.c | |
parent | ef73374dc3e4bf8104ba31d5b22517f8028b467a (diff) |
patch 9.1.0447: completion may be wrong when deleting all charsv9.1.0447
Problem: completion may be wrong when deleting all chars
Solution: reset compl_shown_match
closes: #14854
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 c420c0ed93..c1374d3e9c 100644 --- a/src/insexpand.c +++ b/src/insexpand.c @@ -1255,6 +1255,12 @@ ins_compl_build_pum(void) if (match_at_original_text(compl_shown_match)) shown_match_ok = TRUE; + if (compl_leader != NULL + && STRCMP(compl_leader, compl_orig_text) == 0 + && shown_match_ok == FALSE) + compl_shown_match = compl_no_select ? compl_first_match + : compl_first_match->cp_next; + i = 0; compl = compl_first_match; do |