nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit df4d1819875a07f083c8ebc1295c848113fc3e37
parent 7fcf6e6068a7bca8d39e049582596a73a99d052d
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 24 Feb 2019 11:00:06 +0100

help, docs: say "Delete" when things don't go into the cutbuffer

Reported-by: Božidar Putanec <bozidarp@yahoo.com>

Diffstat:
Mdoc/nano.texi | 4++--
Mdoc/nanorc.5 | 4++--
Msrc/global.c | 4++--
3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/doc/nano.texi b/doc/nano.texi @@ -1184,13 +1184,13 @@ Throws away the current line (or the marked region). (This function is bound by default to <Meta+Delete>.) @item cutwordleft -Cuts from the cursor position to the beginning of the preceding word. +Deletes from the cursor position to the beginning of the preceding word. (This function is not bound by default. If your terminal produces @code{^H} for <Ctrl+Backspace>, you can make <Ctrl+Backspace> delete the word to the left of the cursor by rebinding ^H to this function.) @item cutwordright -Cuts from the cursor position to the beginning of the next word. +Deletes from the cursor position to the beginning of the next word. (This function is bound by default to <Ctrl+Delete>.) @item cutrestoffile diff --git a/doc/nanorc.5 b/doc/nanorc.5 @@ -525,13 +525,13 @@ Throws away the current line (or the marked region). (This function is bound by default to <Meta+Delete>.) .TP .B cutwordleft -Cuts from the cursor position to the beginning of the preceding word. +Deletes from the cursor position to the beginning of the preceding word. (This function is not bound by default. If your terminal produces \fB^H\fR for <Ctrl+Backspace>, you can make <Ctrl+Backspace> delete the word to the left of the cursor by rebinding ^H to this function.) .TP .B cutwordright -Cuts from the cursor position to the beginning of the next word. +Deletes from the cursor position to the beginning of the next word. (This function is bound by default to <Ctrl+Delete>.) .TP .B cutrestoffile diff --git a/src/global.c b/src/global.c @@ -612,9 +612,9 @@ void shortcut_init(void) N_("Delete the character to the left of the cursor"); #ifndef NANO_TINY const char *cutwordleft_gist = - N_("Cut backward from cursor to word start"); + N_("Delete backward from cursor to word start"); const char *cutwordright_gist = - N_("Cut forward from cursor to next word start"); + N_("Delete forward from cursor to next word start"); const char *cuttilleof_gist = N_("Cut from the cursor position to the end of the file"); #endif