From 3523ab283fbd76f73787dabe2576be3d8f891dbd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 6 Jan 2018 09:12:23 +0530 Subject: [PATCH] More trailing whitespace --- kitty/keys.h | 6 +++--- kitty/keys.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kitty/keys.h b/kitty/keys.h index e561077d4..a1fef8048 100644 --- a/kitty/keys.h +++ b/kitty/keys.h @@ -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: diff --git a/kitty/keys.py b/kitty/keys.py index a627aa072..b4e5d7864 100644 --- a/kitty/keys.py +++ b/kitty/keys.py @@ -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]))