summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authornicm <nicm>2019-05-30 20:54:03 +0000
committernicm <nicm>2019-05-30 20:54:03 +0000
commitb26523c26dc7cf0a24a1adb787aa1816deb40693 (patch)
tree473869a72aa2196a12ef1d7ebf7530246282130a /window.c
parent8fb796b5b3fbd7ff430d1b6ad2a49f97feea8f3c (diff)
Remove a leftover abort and some fixes from cppcheck.
Diffstat (limited to 'window.c')
-rw-r--r--window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window.c b/window.c
index b08a5d35..1d83c247 100644
--- a/window.c
+++ b/window.c
@@ -1136,7 +1136,7 @@ window_pane_reset_mode(struct window_pane *wp)
} else {
log_debug("%s: next mode is %s", __func__, next->mode->name);
wp->screen = next->screen;
- if (next != NULL && next->mode->resize != NULL)
+ if (next->mode->resize != NULL)
next->mode->resize(next, wp->sx, wp->sy);
}
wp->flags |= (PANE_REDRAW|PANE_CHANGED);