summaryrefslogtreecommitdiffstats
path: root/cmd-previous-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-previous-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-previous-window.c')
-rw-r--r--cmd-previous-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-previous-window.c b/cmd-previous-window.c
index 58e292be..9030e2cc 100644
--- a/cmd-previous-window.c
+++ b/cmd-previous-window.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-previous-window.c,v 1.18 2009-07-14 06:43:32 nicm Exp $ */
+/* $Id: cmd-previous-window.c,v 1.19 2009-07-22 16:24:59 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -48,7 +48,7 @@ cmd_previous_window_init(struct cmd *self, int key)
cmd_target_init(self, key);
data = self->data;
- if (key == KEYC_ADDESC('p'))
+ if (key == ('p' | KEYC_ESCAPE))
data->chflags |= CMD_CHFLAG('a');
}