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:
Marco Hinz
2017-01-09 18:39:31 +01:00
committed by James McCoy
parent c05e7f0fdd
commit d3f97232e8
3 changed files with 10 additions and 10 deletions

View File

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