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