|PatchSet 871

|Date: 2011/03/27 21:31:25
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|Don't include meta twice when working out the flags to output for
|xterm-style keys - bit 3 is accepted on input but not on output. Also a
|style nit in the header.
This commit is contained in:
Nicholas Marriott
2011-04-06 22:17:33 +00:00
parent 536fc24653
commit 2b508f7f6b
2 changed files with 3 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $Id: xterm-keys.c,v 1.8 2011-01-03 23:32:04 tcunha Exp $ */
/* $Id: xterm-keys.c,v 1.9 2011-04-06 22:17:33 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@ -174,8 +174,6 @@ xterm_keys_lookup(int key)
modifiers += 2;
if (key & KEYC_CTRL)
modifiers += 4;
if (key & KEYC_ESCAPE)
modifiers += 8;
/*
* If the key has no modifiers, return NULL and let it fall through to