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

@@ -81,12 +81,12 @@ static inline void restore_win_for_buf(win_T *save_curwin,
#define WITH_BUFFER(b, code) \
do { \
buf_T *save_curbuf = NULL; \
win_T *save_curwin = NULL; \
tabpage_T *save_curtab = NULL; \
bufref_T save_curbuf = { NULL, 0 }; \
switch_to_win_for_buf(b, &save_curwin, &save_curtab, &save_curbuf); \
code; \
restore_win_for_buf(save_curwin, save_curtab, save_curbuf); \
restore_win_for_buf(save_curwin, save_curtab, &save_curbuf); \
} while (0)