patch 9.1.1409: using f-flag in 'complete' conflicts with Neovim
Problem: using f-flag in 'complete' conflicts with Neovims filename
completion (glepnir, after v9.1.1301).
Solution: use upper-case "F" flag for completion functions
(Girish Palya).
fixes: #17347
closes: #17378
Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/optionstr.c b/src/optionstr.c
index b286767..603d0f4 100644
--- a/src/optionstr.c
+++ b/src/optionstr.c
@@ -1594,10 +1594,10 @@
}
*buf_ptr = NUL;
- if (vim_strchr((char_u *)".wbuksid]tUfo", *buffer) == NULL)
+ if (vim_strchr((char_u *)".wbuksid]tUFo", *buffer) == NULL)
return illegal_char(args->os_errbuf, args->os_errbuflen, *buffer);
- if (vim_strchr((char_u *)"ksf", *buffer) == NULL && *(buffer + 1) != NUL
+ if (vim_strchr((char_u *)"ksF", *buffer) == NULL && *(buffer + 1) != NUL
&& *(buffer + 1) != '^')
char_before = *buffer;
else
@@ -1642,7 +1642,7 @@
expand_set_complete(optexpand_T *args, int *numMatches, char_u ***matches)
{
static char *(p_cpt_values[]) = {
- ".", "w", "b", "u", "k", "kspell", "s", "i", "d", "]", "t", "U", "f", "o",
+ ".", "w", "b", "u", "k", "kspell", "s", "i", "d", "]", "t", "U", "F", "o",
NULL};
return expand_set_opt_string(
args,