diff options
author | Famiu Haque <famiuhaque@proton.me> | 2024-11-06 04:07:29 +0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-06 06:07:29 +0800 |
commit | 04274a417358a4eb9b3b3d1f7e1ea4a4b4419c5c (patch) | |
tree | 7f93a3bbbb1fc4f38bd9422384876cacc1760b2c /src/nvim/option.c | |
parent | ba40a6dbe3a1c98a9f75e56c7cd08ecd522d27dd (diff) | |
download | rneovim-04274a417358a4eb9b3b3d1f7e1ea4a4b4419c5c.tar.gz rneovim-04274a417358a4eb9b3b3d1f7e1ea4a4b4419c5c.tar.bz2 rneovim-04274a417358a4eb9b3b3d1f7e1ea4a4b4419c5c.zip |
refactor(options): remove unnecessary call to `find_option()` (#31088)
Diffstat (limited to 'src/nvim/option.c')
-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); } } |