tweaks: remove unneeded parentheses and blank line and braces
parent
9f6c3a6269
commit
566a2daf12
|
@ -451,7 +451,7 @@ int keycode_from_string(const char *keystring)
|
||||||
return -1;
|
return -1;
|
||||||
} else if (keystring[0] == 'F') {
|
} else if (keystring[0] == 'F') {
|
||||||
int fn = atoi(&keystring[1]);
|
int fn = atoi(&keystring[1]);
|
||||||
if ((fn < 0) || (fn > 63))
|
if (fn < 0 || fn > 63)
|
||||||
return -1;
|
return -1;
|
||||||
return KEY_F0 + fn;
|
return KEY_F0 + fn;
|
||||||
} else if (!strcasecmp(keystring, "Ins"))
|
} 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\x91", ALT_UP, do_findprevious, 0);
|
||||||
add_to_sclist(MMAIN|MHELP, "M-\xE2\x86\x93", ALT_DOWN, do_findnext, 0);
|
add_to_sclist(MMAIN|MHELP, "M-\xE2\x86\x93", ALT_DOWN, do_findnext, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
|
10
src/winio.c
10
src/winio.c
|
@ -523,15 +523,15 @@ int parse_kbinput(WINDOW *win)
|
||||||
} else if (retval == shiftcontrolend) {
|
} else if (retval == shiftcontrolend) {
|
||||||
shift_held = TRUE;
|
shift_held = TRUE;
|
||||||
return CONTROL_END;
|
return CONTROL_END;
|
||||||
} else if (retval == altleft) {
|
} else if (retval == altleft)
|
||||||
return ALT_LEFT;
|
return ALT_LEFT;
|
||||||
} else if (retval == altright) {
|
else if (retval == altright)
|
||||||
return ALT_RIGHT;
|
return ALT_RIGHT;
|
||||||
} else if (retval == altup) {
|
else if (retval == altup)
|
||||||
return ALT_UP;
|
return ALT_UP;
|
||||||
} else if (retval == altdown) {
|
else if (retval == altdown)
|
||||||
return ALT_DOWN;
|
return ALT_DOWN;
|
||||||
} else if (retval == shiftaltleft) {
|
else if (retval == shiftaltleft) {
|
||||||
shift_held = TRUE;
|
shift_held = TRUE;
|
||||||
return KEY_HOME;
|
return KEY_HOME;
|
||||||
} else if (retval == shiftaltright) {
|
} else if (retval == shiftaltright) {
|
||||||
|
|
Loading…
Reference in New Issue