More trailing whitespace

This commit is contained in:
Kovid Goyal 2018-01-06 09:12:23 +05:30
parent 5b2a9b101d
commit 3523ab283f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 4 deletions

6
kitty/keys.h generated
View File

@ -487,7 +487,7 @@ static inline const char*
key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
switch(mode) {
case NORMAL:
switch(action & 3) { case 3: return NULL;
switch(action & 3) { case 3: return NULL;
case 0: // RELEASE
return NULL;
@ -2891,7 +2891,7 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
case APPLICATION:
switch(action & 3) { case 3: return NULL;
switch(action & 3) { case 3: return NULL;
case 0: // RELEASE
return NULL;
@ -5295,7 +5295,7 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
case EXTENDED:
switch(action & 3) { case 3: return NULL;
switch(action & 3) { case 3: return NULL;
case 0: // RELEASE
switch (mods & 0xf) {
case 0x0:

View File

@ -281,7 +281,7 @@ def generate_key_table():
i += 1
ind('case {}:'.format(mode))
i += 1
ind('switch(action & 3) { case 3: return NULL; ')
ind('switch(action & 3) { case 3: return NULL;')
for action in (defines.GLFW_RELEASE, defines.GLFW_PRESS, defines.GLFW_REPEAT):
i += 1
ind('case {}: // {}'.format(action, 'RELEASE PRESS REPEAT'.split()[action]))