Commit 566a2daf authored by David Lawrence Ramsey's avatar David Lawrence Ramsey Committed by Benno Schulenberg
Browse files

tweaks: remove unneeded parentheses and blank line and braces

No related merge requests found
Showing with 6 additions and 7 deletions
+6 -7
......@@ -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
{
......
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment