mirror of
https://github.com/neovim/neovim.git
synced 2025-10-10 03:46:31 +00:00
Make Nvim work with latest vim-patch v7.4.2024
v7.4.2024 changed a few function signatures of functions that we use in Neovim-specific code, e.g. the API. Due to that the commit for 7.4.2024 doesn't build on its own, only together with this commit.
This commit is contained in:
@@ -899,7 +899,7 @@ static void set_option_value_for(char *key,
|
||||
{
|
||||
win_T *save_curwin = NULL;
|
||||
tabpage_T *save_curtab = NULL;
|
||||
buf_T *save_curbuf = NULL;
|
||||
bufref_T save_curbuf = { NULL, 0 };
|
||||
|
||||
try_start();
|
||||
switch (opt_type)
|
||||
@@ -922,7 +922,7 @@ static void set_option_value_for(char *key,
|
||||
case SREQ_BUF:
|
||||
switch_buffer(&save_curbuf, (buf_T *)from);
|
||||
set_option_value_err(key, numval, stringval, opt_flags, err);
|
||||
restore_buffer(save_curbuf);
|
||||
restore_buffer(&save_curbuf);
|
||||
break;
|
||||
case SREQ_GLOBAL:
|
||||
set_option_value_err(key, numval, stringval, opt_flags, err);
|
||||
|
Reference in New Issue
Block a user