aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/optionstr.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-10-21 15:52:47 +0200
committerGitHub <noreply@github.com>2023-10-21 15:52:47 +0200
commit40574b424f48308e06093031b1324509b64a8cc3 (patch)
tree2f7f83148d692a64c74a92eb7438ee26eac4310d /src/nvim/optionstr.c
parent752c6ce4ad717620f34cc27e788fd9665c488565 (diff)
parentae4ca4edf89ece433b61e8bf92c412298b58d9ea (diff)
downloadrneovim-40574b424f48308e06093031b1324509b64a8cc3.tar.gz
rneovim-40574b424f48308e06093031b1324509b64a8cc3.tar.bz2
rneovim-40574b424f48308e06093031b1324509b64a8cc3.zip
Merge pull request #25624 from glepnir/fix_25598
feat(complete): support f flag for complete buffer name part
Diffstat (limited to 'src/nvim/optionstr.c')
-rw-r--r--src/nvim/optionstr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/optionstr.c b/src/nvim/optionstr.c
index 2e90b6b4ae..63ceb07b48 100644
--- a/src/nvim/optionstr.c
+++ b/src/nvim/optionstr.c
@@ -1171,7 +1171,7 @@ const char *did_set_complete(optset_T *args)
if (!*s) {
break;
}
- if (vim_strchr(".wbuksid]tU", (uint8_t)(*s)) == NULL) {
+ if (vim_strchr(".wbuksid]tUf", (uint8_t)(*s)) == NULL) {
return illegal_char(args->os_errbuf, args->os_errbuflen, (uint8_t)(*s));
}
if (*++s != NUL && *s != ',' && *s != ' ') {
@@ -1200,7 +1200,7 @@ const char *did_set_complete(optset_T *args)
int expand_set_complete(optexpand_T *args, int *numMatches, char ***matches)
{
static char *(p_cpt_values[]) = {
- ".", "w", "b", "u", "k", "kspell", "s", "i", "d", "]", "t", "U", NULL
+ ".", "w", "b", "u", "k", "kspell", "s", "i", "d", "]", "t", "U", "f", NULL
};
return expand_set_opt_string(args,
p_cpt_values,