diff options
author | lonerover <pathfinder1644@yahoo.com> | 2017-01-09 13:06:24 +0800 |
---|---|---|
committer | lonerover <pathfinder1644@yahoo.com> | 2017-01-09 13:06:24 +0800 |
commit | 2b56cf099a8f383e74496ff48810c8029d3c1ba5 (patch) | |
tree | 56eb84c2cefcd199ca68d4a426ae1ddb86d7826f /src | |
parent | a584375e9ffa3804077ec8cedfe8b090c1c11f7a (diff) | |
download | rneovim-2b56cf099a8f383e74496ff48810c8029d3c1ba5.tar.gz rneovim-2b56cf099a8f383e74496ff48810c8029d3c1ba5.tar.bz2 rneovim-2b56cf099a8f383e74496ff48810c8029d3c1ba5.zip |
fix test failure
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/window.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index 301dc93026..89228e1b0f 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -1719,6 +1719,7 @@ close_windows ( { tabpage_T *tp, *nexttp; int h = tabline_height(); + int count = tabpage_index(NULL); ++RedrawingDisabled; @@ -1755,9 +1756,14 @@ close_windows ( --RedrawingDisabled; - redraw_tabline = TRUE; - if (h != tabline_height()) + if (count != tabpage_index(NULL)) { + apply_autocmds(EVENT_TABCLOSED, NULL, NULL, false, curbuf); + } + + redraw_tabline = true; + if (h != tabline_height()) { shell_new_rows(); + } } /// Check that current window is the last one. |