=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/input.c,v retrieving revision 1.5 retrieving revision 1.6 diff -c -r1.5 -r1.6 *** src/usr.bin/tmux/input.c 2009/06/04 14:24:49 1.5 --- src/usr.bin/tmux/input.c 2009/06/04 14:42:14 1.6 *************** *** 1,4 **** ! /* $OpenBSD: input.c,v 1.5 2009/06/04 14:24:49 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: input.c,v 1.6 2009/06/04 14:42:14 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 399,411 **** if (ch == 0x1b) { /* ESC */ /* Abort sequence and begin with new. */ input_state(ictx, input_state_escape); ! } else if (ch != 0x18 && ch != 0x1a) { /* CAN and SUB */ /* Abort sequence. */ input_state(ictx, input_state_first); ! } else { ! /* Handle C0 immediately. */ ! input_handle_c0_control(ch, ictx); } /* * Just come back to this state, in case the next character * is the start of a private sequence. --- 399,414 ---- if (ch == 0x1b) { /* ESC */ /* Abort sequence and begin with new. */ input_state(ictx, input_state_escape); ! return; ! } else if (ch == 0x18 || ch == 0x1a) { /* CAN and SUB */ /* Abort sequence. */ input_state(ictx, input_state_first); ! return; } + + /* Handle C0 immediately. */ + input_handle_c0_control(ch, ictx); + /* * Just come back to this state, in case the next character * is the start of a private sequence. *************** *** 467,479 **** if (ch == 0x1b) { /* ESC */ /* Abort sequence and begin with new. */ input_state(ictx, input_state_escape); ! } else if (ch != 0x18 && ch != 0x1a) { /* CAN and SUB */ /* Abort sequence. */ input_state(ictx, input_state_first); ! } else { ! /* Handle C0 immediately. */ ! input_handle_c0_control(ch, ictx); } return; } --- 470,485 ---- if (ch == 0x1b) { /* ESC */ /* Abort sequence and begin with new. */ input_state(ictx, input_state_escape); ! return; ! } else if (ch == 0x18 || ch == 0x1a) { /* CAN and SUB */ /* Abort sequence. */ input_state(ictx, input_state_first); ! return; } + + /* Handle C0 immediately. */ + input_handle_c0_control(ch, ictx); + return; }