Remove a leftover abort and some fixes from cppcheck.

This commit is contained in:
nicm
2019-05-30 20:54:03 +00:00
parent 8fb796b5b3
commit b26523c26d
5 changed files with 5 additions and 6 deletions

View File

@ -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);