aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-09-23 08:02:12 +0800
committerGitHub <noreply@github.com>2022-09-23 08:02:12 +0800
commit9aead1f670f42bac754709215fbab32397a202b0 (patch)
tree6fca35b20fd84ce30df1df89bb442239711b0620 /src/nvim/ex_docmd.c
parent0760379b413ca95b80ed2970b49f14ba3b1acbf9 (diff)
parentd7052e8e1f0311113199ae5c25886fa9690367e4 (diff)
downloadrneovim-9aead1f670f42bac754709215fbab32397a202b0.tar.gz
rneovim-9aead1f670f42bac754709215fbab32397a202b0.tar.bz2
rneovim-9aead1f670f42bac754709215fbab32397a202b0.zip
Merge pull request #20299 from zeertzjq/vim-9.0.0550
vim-patch:9.0.0550: crash when closing a tabpage and buffer is NULL
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".