mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-25 22:29:42 +03:00
Allowing the function do_cut_till_end() to be rebound.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4840 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
dcb0557670
commit
f8507bb9a1
@ -2,6 +2,8 @@
|
|||||||
* doc/man/nanorc.5: Give syntax highlighting its own section,
|
* doc/man/nanorc.5: Give syntax highlighting its own section,
|
||||||
add the "header" command, tweak some wording and formatting,
|
add the "header" command, tweak some wording and formatting,
|
||||||
and trim some duplicate introductory information.
|
and trim some duplicate introductory information.
|
||||||
|
* src/global.c (strtosc), doc/man/nanorc.5: Allow the function
|
||||||
|
do_cut_till_end (naming it "cutrestoffile") to be rebound.
|
||||||
|
|
||||||
2014-05-04 Benno Schulenberg <bensberg@justemail.net>
|
2014-05-04 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/winio.c (statusbar): Elide a variable.
|
* src/winio.c (statusbar): Elide a variable.
|
||||||
|
@ -387,8 +387,11 @@ Copy the currently stored text into the current buffer position.
|
|||||||
.B mark
|
.B mark
|
||||||
Begin selecting text for cutting at the current position.
|
Begin selecting text for cutting at the current position.
|
||||||
.TP
|
.TP
|
||||||
|
.B cutrestoffile
|
||||||
|
Cut all text from the cursor position till the end of the buffer.
|
||||||
|
.TP
|
||||||
.B curpos
|
.B curpos
|
||||||
Show the current line, column, word positions in the file.
|
Show the current cursor position: the line, column, and character positions.
|
||||||
.TP
|
.TP
|
||||||
.B wordcount
|
.B wordcount
|
||||||
Count the number of words in the current buffer.
|
Count the number of words in the current buffer.
|
||||||
|
@ -1278,6 +1278,8 @@ sc *strtosc(char *input)
|
|||||||
else if (!strcasecmp(input, "uncut"))
|
else if (!strcasecmp(input, "uncut"))
|
||||||
s->scfunc = do_uncut_text;
|
s->scfunc = do_uncut_text;
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
|
else if (!strcasecmp(input, "cutrestoffile"))
|
||||||
|
s->scfunc = do_cut_till_end;
|
||||||
else if (!strcasecmp(input, "copytext"))
|
else if (!strcasecmp(input, "copytext"))
|
||||||
s->scfunc = do_copy_text;
|
s->scfunc = do_copy_text;
|
||||||
else if (!strcasecmp(input, "mark"))
|
else if (!strcasecmp(input, "mark"))
|
||||||
|
Loading…
Reference in New Issue
Block a user