aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r--src/nvim/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index f6799be023..93440def39 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -1932,7 +1932,7 @@ void win_close_othertab(win_T *win, int free_buf, tabpage_T *tp)
return;
/* When closing the last window in a tab page remove the tab page. */
- if (tp == NULL ? firstwin == lastwin : tp->tp_firstwin == tp->tp_lastwin) {
+ if (tp->tp_firstwin == tp->tp_lastwin) {
if (tp == first_tabpage)
first_tabpage = tp->tp_next;
else {