From 566a2daf12c1330616bb7aacce6399148eecc16f Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Mon, 14 Aug 2017 13:12:20 -0500 Subject: [PATCH] tweaks: remove unneeded parentheses and blank line and braces --- src/global.c | 3 +-- src/winio.c | 10 +++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/global.c b/src/global.c index c3c9ee57..58166405 100644 --- a/src/global.c +++ b/src/global.c @@ -451,7 +451,7 @@ int keycode_from_string(const char *keystring) return -1; } else if (keystring[0] == 'F') { int fn = atoi(&keystring[1]); - if ((fn < 0) || (fn > 63)) + if (fn < 0 || fn > 63) return -1; return KEY_F0 + fn; } else if (!strcasecmp(keystring, "Ins")) @@ -1147,7 +1147,6 @@ void shortcut_init(void) add_to_sclist(MMAIN|MHELP, "M-\xE2\x86\x91", ALT_UP, do_findprevious, 0); add_to_sclist(MMAIN|MHELP, "M-\xE2\x86\x93", ALT_DOWN, do_findnext, 0); #endif - } else #endif { diff --git a/src/winio.c b/src/winio.c index 69efa182..e3e00198 100644 --- a/src/winio.c +++ b/src/winio.c @@ -523,15 +523,15 @@ int parse_kbinput(WINDOW *win) } else if (retval == shiftcontrolend) { shift_held = TRUE; return CONTROL_END; - } else if (retval == altleft) { + } else if (retval == altleft) return ALT_LEFT; - } else if (retval == altright) { + else if (retval == altright) return ALT_RIGHT; - } else if (retval == altup) { + else if (retval == altup) return ALT_UP; - } else if (retval == altdown) { + else if (retval == altdown) return ALT_DOWN; - } else if (retval == shiftaltleft) { + else if (retval == shiftaltleft) { shift_held = TRUE; return KEY_HOME; } else if (retval == shiftaltright) {