summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-09-22 18:08:37 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-22 18:08:37 +0100
commit62de54b48d6354d4622ec0b21ffa4cf3cf312505 (patch)
tree1aa6e8b6c74a1fa1514279b4389681c93fa8b413 /src/ex_docmd.c
parent5800c798385b4a7eded9ea63cfd4f57d1499a673 (diff)
patch 9.0.0550: crash when closing a tabpage and buffer is NULLv9.0.0550
Problem: Crash when closing a tabpage and buffer is NULL. Solution: Adjust how autocommands are triggered when closing a window. (closes #11198, closes #11197)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index a786ff0cc6..912203917e 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -6304,7 +6304,6 @@ tabpage_close_other(tabpage_T *tp, int forceit)
{
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 forceit)
}
apply_autocmds(EVENT_TABCLOSED, NULL, NULL, FALSE, curbuf);
-
- redraw_tabline = TRUE;
- if (h != tabline_height())
- shell_new_rows();
}
/*