diff src/ex_docmd.c @ 30429:69ff2bd737a9 v9.0.0550

patch 9.0.0550: crash when closing a tabpage and buffer is NULL Commit: https://github.com/vim/vim/commit/62de54b48d6354d4622ec0b21ffa4cf3cf312505 Author: zeertzjq <zeertzjq@outlook.com> Date: Thu Sep 22 18:08:37 2022 +0100 patch 9.0.0550: crash when closing a tabpage and buffer is NULL Problem: Crash when closing a tabpage and buffer is NULL. Solution: Adjust how autocommands are triggered when closing a window. (closes #11198, closes #11197)
author Bram Moolenaar <Bram@vim.org>
date Thu, 22 Sep 2022 19:15:03 +0200
parents 48c73657679c
children 37aa9fd2ed72
line wrap: on
line diff
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -6304,7 +6304,6 @@ tabpage_close_other(tabpage_T *tp, int f
 {
     int		done = 0;
     win_T	*wp;
-    int		h = tabline_height();
 
     // Limit to 1000 windows, autocommands may add a window while we close
     // one.  OK, so I'm paranoid...
@@ -6320,10 +6319,6 @@ tabpage_close_other(tabpage_T *tp, int f
     }
 
     apply_autocmds(EVENT_TABCLOSED, NULL, NULL, FALSE, curbuf);
-
-    redraw_tabline = TRUE;
-    if (h != tabline_height())
-	shell_new_rows();
 }
 
 /*