diff options
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r-- | src/nvim/window.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index efaeeaa4c1..b631cbe7c8 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -4946,12 +4946,12 @@ win_T *buf_jump_open_tab(buf_T *buf) return NULL; } +static int last_win_id = LOWEST_WIN_ID - 1; + /// @param hidden allocate a window structure and link it in the window if // false. win_T *win_alloc(win_T *after, bool hidden) { - static int last_win_id = LOWEST_WIN_ID - 1; - // allocate window structure and linesizes arrays win_T *new_wp = xcalloc(1, sizeof(win_T)); @@ -7451,6 +7451,11 @@ skip: return NULL; // no error } +int get_last_winid(void) +{ + return last_win_id; +} + void win_get_tabwin(handle_T id, int *tabnr, int *winnr) { *tabnr = 0; |