mirror of git://git.sv.gnu.org/nano.git
Sorting functions slightly better, and
allowing rebinding in the linter menu. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4791 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
57d773f8d0
commit
3064db26e6
|
@ -6,6 +6,8 @@
|
|||
* 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.
|
||||
* src/global.c (strtosc, strtomenu): Sort functions slightly
|
||||
better, and allow things to be rebound in the linter menu.
|
||||
|
||||
2014-04-16 Benno Schulenberg <bensberg@justemail.net>
|
||||
* src/winio.c (get_mouseinput): Properly find also the zeroeth
|
||||
|
|
10
src/global.c
10
src/global.c
|
@ -1407,16 +1407,16 @@ sc *strtosc(char *input)
|
|||
s->scfunc = do_scroll_up;
|
||||
else if (!strcasecmp(input, "scrolldown"))
|
||||
s->scfunc = do_scroll_down;
|
||||
else if (!strcasecmp(input, "nextword"))
|
||||
s->scfunc = do_next_word_void;
|
||||
else if (!strcasecmp(input, "suspend"))
|
||||
s->scfunc = do_suspend_void;
|
||||
else if (!strcasecmp(input, "prevword"))
|
||||
s->scfunc = do_prev_word_void;
|
||||
else if (!strcasecmp(input, "nextword"))
|
||||
s->scfunc = do_next_word_void;
|
||||
else if (!strcasecmp(input, "findbracket"))
|
||||
s->scfunc = do_find_bracket;
|
||||
else if (!strcasecmp(input, "wordcount"))
|
||||
s->scfunc = do_wordlinechar_count;
|
||||
else if (!strcasecmp(input, "suspend"))
|
||||
s->scfunc = do_suspend_void;
|
||||
else if (!strcasecmp(input, "undo"))
|
||||
s->scfunc = do_undo;
|
||||
else if (!strcasecmp(input, "redo"))
|
||||
|
@ -1611,6 +1611,8 @@ int strtomenu(char *input)
|
|||
return MHELP;
|
||||
else if (!strcasecmp(input, "spell"))
|
||||
return MSPELL;
|
||||
else if (!strcasecmp(input, "linter"))
|
||||
return MLINTER;
|
||||
else if (!strcasecmp(input, "browser"))
|
||||
return MBROWSER;
|
||||
else if (!strcasecmp(input, "whereisfile"))
|
||||
|
|
Loading…
Reference in New Issue