refactor(options): remove unnecessary call to find_option() (#31088)

This commit is contained in:
Famiu Haque 2024-11-06 04:07:29 +06:00 committed by GitHub
parent ba40a6dbe3
commit 04274a4173
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}
}