Add ability to rebind the (still unfinished) undo and redo functions in case anyone is interested in testing it out early.
Add to nanorc.5 also. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4280 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
9fb13fb8f0
Коммит
70859f4a5b
@ -396,6 +396,12 @@ Count the number of words in the current buffer.
|
|||||||
.B refresh
|
.B refresh
|
||||||
Refresh the screen.
|
Refresh the screen.
|
||||||
.TP
|
.TP
|
||||||
|
.B undo
|
||||||
|
Undo the text action peformed (add text, delete text, etc).
|
||||||
|
.TP
|
||||||
|
.B suspend
|
||||||
|
Redo the last action which was undone.
|
||||||
|
.TP
|
||||||
.B suspend
|
.B suspend
|
||||||
Suspend the editor (if the suspend function is enabled, see the
|
Suspend the editor (if the suspend function is enabled, see the
|
||||||
"suspendenable" entry below).
|
"suspendenable" entry below).
|
||||||
|
@ -1339,6 +1339,10 @@ sc *strtosc(int menu, char *input)
|
|||||||
s->scfunc = do_find_bracket;
|
s->scfunc = do_find_bracket;
|
||||||
else if (!strcasecmp(input, "wordcount"))
|
else if (!strcasecmp(input, "wordcount"))
|
||||||
s->scfunc = do_wordlinechar_count;
|
s->scfunc = do_wordlinechar_count;
|
||||||
|
else if (!strcasecmp(input, "undo"))
|
||||||
|
s->scfunc = do_undo;
|
||||||
|
else if (!strcasecmp(input, "redo"))
|
||||||
|
s->scfunc = do_redo;
|
||||||
else if (!strcasecmp(input, "prevhistory")) {
|
else if (!strcasecmp(input, "prevhistory")) {
|
||||||
s->scfunc = (void *) prev_history_msg;
|
s->scfunc = (void *) prev_history_msg;
|
||||||
s->execute = FALSE;
|
s->execute = FALSE;
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user