vim-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: vim/vim#17347
closes: vim/vim#17378

14f6da5ba8

Co-authored-by: Girish Palya <girishji@gmail.com>
This commit is contained in:
zeertzjq
2025-05-31 19:03:41 +08:00
parent 13aec582b4
commit eeff6ca8ff
8 changed files with 68 additions and 70 deletions

View File

@@ -864,11 +864,11 @@ const char *did_set_complete(optset_T *args)
}
*buf_ptr = NUL;
if (vim_strchr(".wbuksid]tUfo", (uint8_t)(*buffer)) == NULL) {
if (vim_strchr(".wbuksid]tUfFo", (uint8_t)(*buffer)) == NULL) {
return illegal_char(args->os_errbuf, args->os_errbuflen, (uint8_t)(*buffer));
}
if (vim_strchr("ksf", (uint8_t)(*buffer)) == NULL && *(buffer + 1) != NUL
if (vim_strchr("ksF", (uint8_t)(*buffer)) == NULL && *(buffer + 1) != NUL
&& *(buffer + 1) != '^') {
char_before = (uint8_t)(*buffer);
} else {