mirror of
https://github.com/tmux/tmux.git
synced 2024-11-12 23:28:52 +00:00
Sync OpenBSD patchset 807:
Style tweaks.
This commit is contained in:
parent
a373235106
commit
3585feca54
6
input.c
6
input.c
@ -1,4 +1,4 @@
|
||||
/* $Id: input.c,v 1.110 2010-12-06 22:52:21 nicm Exp $ */
|
||||
/* $Id: input.c,v 1.111 2010-12-25 23:43:53 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -720,11 +720,11 @@ input_parse(struct window_pane *wp)
|
||||
* Execute the handler, if any. Don't switch state if it
|
||||
* returns non-zero.
|
||||
*/
|
||||
if (itr->handler && itr->handler(ictx) != 0)
|
||||
if (itr->handler != NULL && itr->handler(ictx) != 0)
|
||||
continue;
|
||||
|
||||
/* And switch state, if necessary. */
|
||||
if (itr->state) {
|
||||
if (itr->state != NULL) {
|
||||
if (ictx->state->exit != NULL)
|
||||
ictx->state->exit(ictx);
|
||||
ictx->state = itr->state;
|
||||
|
Loading…
Reference in New Issue
Block a user