diff options
author | Jurica Bradaric <jbradaric@gmail.com> | 2016-08-27 17:57:05 +0200 |
---|---|---|
committer | Jurica Bradaric <jbradaric@gmail.com> | 2016-10-07 17:07:16 +0200 |
commit | 50bd8297e67814b3ddbf0f274314fd2d321f63b6 (patch) | |
tree | 35629b612e1af37562bbb4f1059add230c1f471b /src/nvim/window.c | |
parent | d8079e5ab7c9cb029db35f725333ea95d515e337 (diff) | |
download | rneovim-50bd8297e67814b3ddbf0f274314fd2d321f63b6.tar.gz rneovim-50bd8297e67814b3ddbf0f274314fd2d321f63b6.tar.bz2 rneovim-50bd8297e67814b3ddbf0f274314fd2d321f63b6.zip |
vim-patch:7.4.1895
Problem: Cannot use a window ID where a window number is expected.
Solution: Add LOWEST_WIN_ID, so that the window ID can be used where a
number is expected.
https://github.com/vim/vim/commit/888ccac8902cee186fbd47e971881f6d9b19c068
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r-- | src/nvim/window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index e9a66ad907..66f1049b5e 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -3694,7 +3694,7 @@ win_T *buf_jump_open_tab(buf_T *buf) */ static win_T *win_alloc(win_T *after, int hidden) { - static int last_win_id = 0; + static int last_win_id = LOWEST_WIN_ID - 1; // allocate window structure and linesizes arrays win_T *new_wp = xcalloc(1, sizeof(win_T)); |