Eliding a variable and condensing a comment.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4770 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
8f6151198a
commit
1e3f6bc00b
|
@ -4,6 +4,7 @@
|
||||||
* src/*: Remove the unused parameter 'func_key' from get_shortcut(),
|
* src/*: Remove the unused parameter 'func_key' from get_shortcut(),
|
||||||
and subsequently from parse_browser_input() and parse_help_input().
|
and subsequently from parse_browser_input() and parse_help_input().
|
||||||
* src/*: Whitespace adjustments, plus a few comment tweaks.
|
* src/*: Whitespace adjustments, plus a few comment tweaks.
|
||||||
|
* src/winio.c (getfuncfromkey): Elide variable and condense comment.
|
||||||
|
|
||||||
2014-04-13 Benno Schulenberg <bensberg@justemail.net>
|
2014-04-13 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* proto.h, global.c, rcfile.c: Remove the unused parameter 'menu'
|
* proto.h, global.c, rcfile.c: Remove the unused parameter 'menu'
|
||||||
|
|
|
@ -1793,15 +1793,12 @@ const sc *get_shortcut(int menu, int *kbinput, bool *meta_key)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Try to get a function back from a window. Just a wrapper
|
/* Try to get a function back from a window. Just a wrapper. */
|
||||||
* functions need to create a function_key meta_key blah blah
|
|
||||||
* menu - what menu name to look through for valid funcs. */
|
|
||||||
const subnfunc *getfuncfromkey(WINDOW *win)
|
const subnfunc *getfuncfromkey(WINDOW *win)
|
||||||
{
|
{
|
||||||
int kbinput;
|
int kbinput;
|
||||||
bool func_key = FALSE, meta_key = FALSE;
|
bool func_key = FALSE, meta_key = FALSE;
|
||||||
const sc *s;
|
const sc *s;
|
||||||
const subnfunc *f;
|
|
||||||
|
|
||||||
kbinput = parse_kbinput(win, &meta_key, &func_key);
|
kbinput = parse_kbinput(win, &meta_key, &func_key);
|
||||||
if (kbinput == 0)
|
if (kbinput == 0)
|
||||||
|
@ -1811,9 +1808,7 @@ const subnfunc *getfuncfromkey(WINDOW *win)
|
||||||
if (!s)
|
if (!s)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
f = sctofunc((sc *) s);
|
return sctofunc((sc *) s);
|
||||||
return f;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Move to (x, y) in win, and display a line of n spaces with the
|
/* Move to (x, y) in win, and display a line of n spaces with the
|
||||||
|
|
Loading…
Reference in New Issue