mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 08:18:17 +00:00
defaults: Enable syntax/filetype for real.
Fixes a bug in #4252: we enabled filetype/syntax if -u was passed, but not otherwise. So it did not work for an empty or missing vimrc.
This commit is contained in:
@@ -335,7 +335,7 @@ int main(int argc, char **argv)
|
||||
source_startup_scripts(¶ms);
|
||||
|
||||
// If using the runtime (-u is not NONE), enable syntax & filetype plugins.
|
||||
if (params.use_vimrc != NULL && strcmp(params.use_vimrc, "NONE") != 0) {
|
||||
if (params.use_vimrc == NULL || strcmp(params.use_vimrc, "NONE") != 0) {
|
||||
// Does ":filetype plugin indent on".
|
||||
filetype_maybe_enable();
|
||||
// Sources syntax/syntax.vim, which calls `:filetype on`.
|
||||
|
Reference in New Issue
Block a user