aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-04-10 22:46:15 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-04-15 02:23:26 -0400
commitcf7d6a7a0b60f13364109374094f2643b067ce84 (patch)
tree3fded2f52cade18d617c0421d439f9c68b2c44d2
parent01eafc0c176442b59599e73db01a2f7956342c27 (diff)
downloadrneovim-cf7d6a7a0b60f13364109374094f2643b067ce84.tar.gz
rneovim-cf7d6a7a0b60f13364109374094f2643b067ce84.tar.bz2
rneovim-cf7d6a7a0b60f13364109374094f2643b067ce84.zip
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.
-rw-r--r--src/nvim/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c
index 8a5c636e41..23ced5ebe5 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -335,7 +335,7 @@ int main(int argc, char **argv)
source_startup_scripts(&params);
// 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`.