=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tty-keys.c,v retrieving revision 1.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- src/usr.bin/tmux/tty-keys.c 2009/12/17 17:39:56 1.29 +++ src/usr.bin/tmux/tty-keys.c 2010/03/22 19:03:52 1.30 @@ -1,4 +1,4 @@ -/* $OpenBSD: tty-keys.c,v 1.29 2009/12/17 17:39:56 nicm Exp $ */ +/* $OpenBSD: tty-keys.c,v 1.30 2010/03/22 19:03:52 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -408,7 +408,7 @@ (*size)++; /* At the end of the string, return the current node. */ - if (len == 0) + if (len == 0 || (tk->next == NULL && tk->key != KEYC_NONE)) return (tk); /* Move into the next tree for the following character. */