mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 01:38:16 +00:00
vim-patch:9.0.1330: handling new value of an option has a long "else if" chain
Problem: Handling new value of an option has a long "else if" chain.
Solution: Use a function pointer. (Yegappan Lakshmanan, closes vim/vim#12015)
af93691b53
This commit is contained in:
@@ -1687,7 +1687,7 @@ void enter_buffer(buf_T *buf)
|
||||
// May need to set the spell language. Can only do this after the buffer
|
||||
// has been properly setup.
|
||||
if (!curbuf->b_help && curwin->w_p_spell && *curwin->w_s->b_p_spl != NUL) {
|
||||
(void)did_set_spelllang(curwin);
|
||||
(void)parse_spelllang(curwin);
|
||||
}
|
||||
curbuf->b_last_used = time(NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user