aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/optionstr.c
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2023-10-13 14:49:01 +0800
committerglepnir <glephunter@gmail.com>2023-10-21 20:06:36 +0800
commitae4ca4edf89ece433b61e8bf92c412298b58d9ea (patch)
tree7429cb148de4b178d5e6de0c1252eec5d768386a /src/nvim/optionstr.c
parent195301c60969c7ce97b1ef3a3caaf4965da1abd5 (diff)
downloadrneovim-ae4ca4edf89ece433b61e8bf92c412298b58d9ea.tar.gz
rneovim-ae4ca4edf89ece433b61e8bf92c412298b58d9ea.tar.bz2
rneovim-ae4ca4edf89ece433b61e8bf92c412298b58d9ea.zip
feat(complete): support f flag for complete buffer 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,