No unnecessary checking for lowercase 'm' or 'f'.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4790 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
bb8c9031a4
commit
57d773f8d0
|
@ -3,6 +3,9 @@
|
||||||
* src/global.c (first_sc_for): Adjust two comments -- the help
|
* src/global.c (first_sc_for): Adjust two comments -- the help
|
||||||
viewer no longer sorts keys to be control first, meta second.
|
viewer no longer sorts keys to be control first, meta second.
|
||||||
* src/global.c (first_sc_for): Put meta first, for clarity.
|
* src/global.c (first_sc_for): Put meta first, for clarity.
|
||||||
|
* src/global.c (strtokeytype): No need to check for lowercase
|
||||||
|
'm' or 'f', the source doesn't use them and rc-file processing
|
||||||
|
uppercases them. Also put control first, for clarity.
|
||||||
|
|
||||||
2014-04-16 Benno Schulenberg <bensberg@justemail.net>
|
2014-04-16 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/winio.c (get_mouseinput): Properly find also the zeroeth
|
* src/winio.c (get_mouseinput): Properly find also the zeroeth
|
||||||
|
|
|
@ -269,11 +269,11 @@ void ext_cmd_void(void)
|
||||||
/* Set type of function based on the string. */
|
/* Set type of function based on the string. */
|
||||||
function_type strtokeytype(const char *str)
|
function_type strtokeytype(const char *str)
|
||||||
{
|
{
|
||||||
if (str[0] == 'M' || str[0] == 'm')
|
if (str[0] == '^')
|
||||||
return META;
|
|
||||||
else if (str[0] == '^')
|
|
||||||
return CONTROL;
|
return CONTROL;
|
||||||
else if (str[0] == 'F' || str[0] == 'f')
|
else if (str[0] == 'M')
|
||||||
|
return META;
|
||||||
|
else if (str[0] == 'F')
|
||||||
return FKEY;
|
return FKEY;
|
||||||
else
|
else
|
||||||
return RAWINPUT;
|
return RAWINPUT;
|
||||||
|
|
Loading…
Reference in New Issue