commit | 888ccac8902cee186fbd47e971881f6d9b19c068 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Jun 04 18:49:36 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Jun 04 18:49:36 2016 +0200 |
tree | d7180b8cc4b4ecfea5880e3f2971742a9689dae8 | |
parent | 511972d810ea490955161ff5097ec2f57919ceaf [diff] [blame] |
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.
diff --git a/src/window.c b/src/window.c index 01da765..2dc2554 100644 --- a/src/window.c +++ b/src/window.c
@@ -4422,7 +4422,7 @@ } #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