aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/private/helpers.c
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2017-01-09 18:39:31 +0100
committerJames McCoy <jamessan@jamessan.com>2017-02-04 17:55:46 -0500
commitd3f97232e8aa94ccb463aadd0c698fd506dfe9ca (patch)
tree03a1518c487cf71a2c18a9cbf743f46fdf074849 /src/nvim/api/private/helpers.c
parentc05e7f0fdd15d550cfb1054416a08d4514a4fb7e (diff)
downloadrneovim-d3f97232e8aa94ccb463aadd0c698fd506dfe9ca.tar.gz
rneovim-d3f97232e8aa94ccb463aadd0c698fd506dfe9ca.tar.bz2
rneovim-d3f97232e8aa94ccb463aadd0c698fd506dfe9ca.zip
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.
Diffstat (limited to 'src/nvim/api/private/helpers.c')
-rw-r--r--src/nvim/api/private/helpers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/api/private/helpers.c b/src/nvim/api/private/helpers.c
index 7daa4d7207..6f3f654bdc 100644
--- a/src/nvim/api/private/helpers.c
+++ b/src/nvim/api/private/helpers.c
@@ -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);