diff src/window.c @ 9223:6c4d610fce0a v7.4.1895

commit https://github.com/vim/vim/commit/888ccac8902cee186fbd47e971881f6d9b19c068 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 4 18:49:36 2016 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Sat, 04 Jun 2016 19:00:06 +0200
parents 0e90f3e13d88
children b24900b73f90
line wrap: on
line diff
--- a/src/window.c
+++ b/src/window.c
@@ -4422,7 +4422,7 @@ buf_jump_open_tab(buf_T *buf)
 }
 #endif
 
-static int last_win_id = 0;
+static int last_win_id = LOWEST_WIN_ID - 1;
 
 /*
  * Allocate a window structure and link it in the window list when "hidden" is