Commit d29e8613 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

in do_(statusbar_)?input(), remove redundant check for allow_funcs'

being TRUE when we get KEY_MOUSE


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3494 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 8 additions and 2 deletions
+8 -2
......@@ -157,6 +157,9 @@ CVS code -
- 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)
......@@ -166,6 +169,9 @@ CVS code -
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)
......
......@@ -1284,7 +1284,7 @@ int do_input(bool *meta_key, bool *func_key, bool *s_or_t, bool
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;
}
......
......@@ -72,7 +72,7 @@ int do_statusbar_input(bool *meta_key, bool *func_key, bool *s_or_t,
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;
}
......
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