summaryrefslogtreecommitdiffstats
path: root/cmd-rotate-window.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-07-22 16:24:59 +0000
committerTiago Cunha <tcunha@gmx.com>2009-07-22 16:24:59 +0000
commita734488a4b84752000ee511b57f07d91ddc28a6d (patch)
tree091cec0e80ba02bc776c3ae1263c37dd2c9e670f /cmd-rotate-window.c
parent94e2339842b813b608fa7726f67b985eb8592712 (diff)
Sync OpenBSD patchset 151:
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-rotate-window.c b/cmd-rotate-window.c
index 17f1f25f..adc0fcf4 100644
--- a/cmd-rotate-window.c
+++ b/cmd-rotate-window.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-rotate-window.c,v 1.7 2009-07-20 15:42:05 tcunha Exp $ */
+/* $Id: cmd-rotate-window.c,v 1.8 2009-07-22 16:24:59 tcunha Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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');
}