- Fix inaccuracies in the usage example. (DLR)
renumber()
- Remove invalid assert. (DLR, found by Filipe Moreira)
+ do_input()
+ - Remove redundant check for allow_funcs' being TRUE when we get
+ KEY_MOUSE. (DLR)
- nano.h:
- Reorder the toggle #defines to match their corresponding order
in toggle_init(). (DLR)
disabled, so that we aren't erroneously kicked out of the
statusbar prompt under any circumstances. (DLR, found by Benno
Schulenberg)
+ do_statusbar_input()
+ - Remove redundant check for allow_funcs' being TRUE when we get
+ KEY_MOUSE. (DLR)
do_yesno()
- Handle the keys in a switch statement instead of a long if
block, for simplicity. (DLR)
if (allow_funcs) {
/* If we got a mouse click and it was on a shortcut, read in the
* shortcut character. */
- if (allow_funcs && *func_key == TRUE && input == KEY_MOUSE)
+ if (*func_key == TRUE && input == KEY_MOUSE)
input = do_mouse() ? get_kbinput(edit, meta_key, func_key) :
ERR;
}
if (allow_funcs) {
/* If we got a mouse click and it was on a shortcut, read in the
* shortcut character. */
- if (allow_funcs && *func_key == TRUE && input == KEY_MOUSE)
+ if (*func_key == TRUE && input == KEY_MOUSE)
input = do_statusbar_mouse() ? get_kbinput(bottomwin,
meta_key, func_key) : ERR;
}