mirror of
https://github.com/neovim/neovim.git
synced 2026-08-26 17:11:48 +00:00
vim-patch:9.2.0726: filetype detect missing from completion (#40439)
Problem: ":filetype detect" is a valid command but not offered by
command-line completion.
Solution: Add "detect" to the completion candidates (glepnir)
closes: vim/vim#20625
984f29860e
Co-authored-by: glepnir <glephunter@gmail.com>
This commit is contained in:
@@ -2790,8 +2790,8 @@ static char *get_filetypecmd_arg(expand_T *xp FUNC_ATTR_UNUSED, int idx)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (filetype_expand_what == EXP_FILETYPECMD_ALL && idx < 4) {
|
||||
char *opts_all[] = { "indent", "plugin", "on", "off" };
|
||||
if (filetype_expand_what == EXP_FILETYPECMD_ALL && idx < 5) {
|
||||
char *opts_all[] = { "detect", "indent", "plugin", "on", "off" };
|
||||
return opts_all[idx];
|
||||
}
|
||||
if (filetype_expand_what == EXP_FILETYPECMD_PLUGIN && idx < 3) {
|
||||
|
||||
Reference in New Issue
Block a user