=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/status.c,v retrieving revision 1.137 retrieving revision 1.138 diff -u -r1.137 -r1.138 --- src/usr.bin/tmux/status.c 2015/10/27 15:58:42 1.137 +++ src/usr.bin/tmux/status.c 2015/11/12 11:05:34 1.138 @@ -1,4 +1,4 @@ -/* $OpenBSD: status.c,v 1.137 2015/10/27 15:58:42 nicm Exp $ */ +/* $OpenBSD: status.c,v 1.138 2015/11/12 11:05:34 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -812,7 +812,7 @@ /* Handle keys in prompt. */ void -status_prompt_key(struct client *c, int key) +status_prompt_key(struct client *c, key_code key) { struct session *sess = c->session; struct options *oo = sess->options; @@ -1116,7 +1116,7 @@ status_prompt_clear(c); break; case MODEKEY_OTHER: - if ((key & 0xff00) != 0 || key < 32 || key == 127) + if (key <= 0x1f || key >= 0x7f) break; c->prompt_buffer = xrealloc(c->prompt_buffer, size + 2);