aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-09-23 07:14:32 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-09-23 07:38:22 +0800
commitc28f00b101148d17a640fe2a186b23fbe230fbf3 (patch)
tree61d3ff2d9240ab65ec2200efbe14c966b976b471 /src/nvim/ex_docmd.c
parent0760379b413ca95b80ed2970b49f14ba3b1acbf9 (diff)
downloadrneovim-c28f00b101148d17a640fe2a186b23fbe230fbf3.tar.gz
rneovim-c28f00b101148d17a640fe2a186b23fbe230fbf3.tar.bz2
rneovim-c28f00b101148d17a640fe2a186b23fbe230fbf3.zip
vim-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 vim/vim#11198, closes vim/vim#11197) https://github.com/vim/vim/commit/62de54b48d6354d4622ec0b21ffa4cf3cf312505
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index b01a262f84..085948f7b1 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -4696,7 +4696,6 @@ void tabpage_close(int forceit)
void tabpage_close_other(tabpage_T *tp, int forceit)
{
int done = 0;
- int h = tabline_height();
char prev_idx[NUMBUFLEN];
// Limit to 1000 windows, autocommands may add a window while we close
@@ -4712,11 +4711,6 @@ void tabpage_close_other(tabpage_T *tp, int forceit)
break;
}
}
-
- redraw_tabline = true;
- if (h != tabline_height()) {
- win_new_screen_rows();
- }
}
/// ":only".