1
0
forked from aniani/vim

patch 8.1.1124: insert completion flags are mixed up

Problem:    Insert completion flags are mixed up.
Solution:   Clean up flags use of ins_compl_add() and cp_flags.
This commit is contained in:
Bram Moolenaar
2019-04-06 14:22:21 +02:00
parent 73655cf0ca
commit d9eefe3155
5 changed files with 80 additions and 69 deletions

View File

@@ -8627,7 +8627,7 @@ dump_word(
? MB_STRNICMP(p, pat, STRLEN(pat)) == 0
: STRNCMP(p, pat, STRLEN(pat)) == 0)
&& ins_compl_add_infercase(p, (int)STRLEN(p),
p_ic, NULL, *dir, 0) == OK)
p_ic, NULL, *dir, FALSE) == OK)
/* if dir was BACKWARD then honor it just once */
*dir = FORWARD;
}