0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.2.2452: no completion for the 'filetype' option

Problem:    No completion for the 'filetype' option.
Solution:   Add filetype completion. (Martin Tournoij, closes #7747)
This commit is contained in:
Bram Moolenaar
2021-02-02 21:10:01 +01:00
parent e7bebc495d
commit d5e8c92816
4 changed files with 15 additions and 1 deletions

View File

@@ -2419,6 +2419,8 @@ was_set_insecurely(char_u *opt, int opt_flags)
/*
* Get a pointer to the flags used for the P_INSECURE flag of option
* "opt_idx". For some local options a local flags field is used.
* NOTE: Caller must make sure that "curwin" is set to the window from which
* the option is used.
*/
static long_u *
insecure_flag(int opt_idx, int opt_flags)
@@ -6209,6 +6211,10 @@ set_context_in_set_cmd(
else
xp->xp_backslash = XP_BS_ONE;
}
else if (p == (char_u *)&p_ft)
{
xp->xp_context = EXPAND_FILETYPE;
}
else
{
xp->xp_context = EXPAND_FILES;