mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
refactor(options): remove unnecessary call to find_option()
(#31088)
This commit is contained in:
parent
ba40a6dbe3
commit
04274a4173
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user