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.

888ccac890
This commit is contained in:
Jurica Bradaric
2016-08-27 17:57:05 +02:00
parent d8079e5ab7
commit 50bd8297e6
6 changed files with 48 additions and 13 deletions

View File

@@ -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));