diff options
author | James McCoy <jamessan@jamessan.com> | 2017-02-06 10:20:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-06 10:20:49 -0500 |
commit | 11efbc80e328d6e92bdb1cdcf6aeac98050c2077 (patch) | |
tree | ffd45f3dab501339999687416c8a3a1e577d899f /src/nvim/api/private/helpers.c | |
parent | a767fee8cd0e6874e528d88f5a8dcf70259dabdd (diff) | |
parent | b0cf071d437699b9b89e3735b3df41914f302eb1 (diff) | |
download | rneovim-11efbc80e328d6e92bdb1cdcf6aeac98050c2077.tar.gz rneovim-11efbc80e328d6e92bdb1cdcf6aeac98050c2077.tar.bz2 rneovim-11efbc80e328d6e92bdb1cdcf6aeac98050c2077.zip |
Merge pull request #5913 from mhinz/buf-lookup-patches
vim-patch:7.4.2017,7.4.2018,7.4.2021,7.4.2022,7.4.2023,7.4.2024
Diffstat (limited to 'src/nvim/api/private/helpers.c')
-rw-r--r-- | src/nvim/api/private/helpers.c | 4 |
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); |