mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 01:02:09 +00:00
fix(filetype): fix :filetype detect error with -u NONE (#29991)
:filetype detect should enable filetype detection when it hasn't been enabled before.
This commit is contained in:
@@ -7330,7 +7330,7 @@ static void ex_filetype(exarg_T *eap)
|
||||
break;
|
||||
}
|
||||
if (strcmp(arg, "on") == 0 || strcmp(arg, "detect") == 0) {
|
||||
if (*arg == 'o' || !filetype_detect) {
|
||||
if (*arg == 'o' || filetype_detect != kTrue) {
|
||||
source_runtime(FILETYPE_FILE, DIP_ALL);
|
||||
filetype_detect = kTrue;
|
||||
if (plugin) {
|
||||
|
Reference in New Issue
Block a user