mirror of
https://github.com/neovim/neovim.git
synced 2025-09-21 10:48:18 +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:
@@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user