diff options
Diffstat (limited to 'usr.bin/tmux/cmd-select-layout.c')
-rw-r--r-- | usr.bin/tmux/cmd-select-layout.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/tmux/cmd-select-layout.c b/usr.bin/tmux/cmd-select-layout.c index 70dfd1f6e17..0fbfa77f052 100644 --- a/usr.bin/tmux/cmd-select-layout.c +++ b/usr.bin/tmux/cmd-select-layout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-select-layout.c,v 1.3 2009/07/19 13:21:40 nicm Exp $ */ +/* $OpenBSD: cmd-select-layout.c,v 1.4 2009/07/21 17:57:29 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -49,16 +49,16 @@ cmd_select_layout_init(struct cmd *self, int key) data = self->data; switch (key) { - case KEYC_ADDESC('1'): + case ('1' | KEYC_ESCAPE): data->arg = xstrdup("even-horizontal"); break; - case KEYC_ADDESC('2'): + case ('2' | KEYC_ESCAPE): data->arg = xstrdup("even-vertical"); - break; - case KEYC_ADDESC('3'): + break; + case ('3' | KEYC_ESCAPE): data->arg = xstrdup("main-horizontal"); break; - case KEYC_ADDESC('4'): + case ('4' | KEYC_ESCAPE): data->arg = xstrdup("main-vertical"); break; } |