diff options
-rw-r--r-- | src/nvim/option.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 783ec0abf4..cff8707edb 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -649,10 +649,8 @@ void set_init_3(void) xfree(p); if (buf_is_empty(curbuf)) { - int idx_ffs = find_option("ffs"); - // Apply the first entry of 'fileformats' to the initial buffer. - if (idx_ffs >= 0 && (options[idx_ffs].flags & kOptFlagWasSet)) { + if (options[kOptFileformats].flags & kOptFlagWasSet) { set_fileformat(default_fileformat(), OPT_LOCAL); } } |