summaryrefslogtreecommitdiffstats
path: root/cmd-rotate-window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-21 17:57:29 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-21 17:57:29 +0000
commit725938fb85290ca67ab50e27f9cacb870ff56c63 (patch)
treec0e4b6e6f5066f87075c14b771d20314408fb5f4 /cmd-rotate-window.c
parentc6012aaabc1eb10f42f77a1836c6e38faa7e396e (diff)
Tidy up keys: use an enum for the key codes, and remove the macros which just
wrap flag sets/clears/tests.
Diffstat (limited to 'cmd-rotate-window.c')
-rw-r--r--cmd-rotate-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-rotate-window.c b/cmd-rotate-window.c
index c69fa8d1..c12345d6 100644
--- a/cmd-rotate-window.c
+++ b/cmd-rotate-window.c
@@ -48,7 +48,7 @@ cmd_rotate_window_init(struct cmd *self, int key)
cmd_target_init(self, key);
data = self->data;
- if (key == KEYC_ADDESC('o'))
+ if (key == ('o' | KEYC_ESCAPE))
data->chflags |= CMD_CHFLAG('D');
}