mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch: 7.4.1619 (#5475)
Problem: When 'fileformats' is set in the vimrc it applies to new buffers
but not the initial buffer.
Solution: Set 'fileformat' when starting up. (Mike Williams)
364fa5c7ec
This commit is contained in:
parent
4169fc8281
commit
3a2903c836
@ -1032,6 +1032,15 @@ void set_init_3(void)
|
|||||||
xfree(p);
|
xfree(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (bufempty()) {
|
||||||
|
int idx_ffs = findoption((char_u *)"ffs");
|
||||||
|
|
||||||
|
// Apply the first entry of 'fileformats' to the initial buffer.
|
||||||
|
if (idx_ffs >= 0 && (options[idx_ffs].flags & P_WAS_SET)) {
|
||||||
|
set_fileformat(default_fileformat(), OPT_LOCAL);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
set_title_defaults();
|
set_title_defaults();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -824,7 +824,7 @@ static int included_patches[] = {
|
|||||||
// 1622 NA
|
// 1622 NA
|
||||||
// 1621 NA
|
// 1621 NA
|
||||||
1620,
|
1620,
|
||||||
// 1619,
|
1619,
|
||||||
// 1618 NA
|
// 1618 NA
|
||||||
// 1617 NA
|
// 1617 NA
|
||||||
// 1616 NA
|
// 1616 NA
|
||||||
|
Loading…
Reference in New Issue
Block a user