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-03-27 20:31:25 +00:00
parent 808502ac3d
commit 7ce8fee4f3
2 changed files with 1 additions and 3 deletions

View File

@ -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