nano

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

commit 69dd0c40bba94834965e5ecc8390602510c7b942
parent c374c773ad6b0aa6e9bc29d6895ecda4609cdf47
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 23 Jan 2023 16:30:15 +0100

help: give the "Replace with" prompt its own help text

This addresses https://savannah.gnu.org/bugs/?63691.

Problem existed since the help texts were introduced,
in version 1.1.3, commit b3655b4c.

Diffstat:
Msrc/help.c | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/help.c b/src/help.c @@ -50,7 +50,7 @@ void help_init(void) char *ptr; /* First, set up the initial help text for the current function. */ - if (currmenu & (MWHEREIS|MREPLACE|MREPLACEWITH)) { + if (currmenu & (MWHEREIS|MREPLACE)) { htx[0] = N_("Search Command Help Text\n\n " "Enter the words or characters you would like to " "search for, and then press Enter. If there is a " @@ -65,6 +65,13 @@ void help_init(void) "will be replaced.\n\n The following function keys are " "available in Search mode:\n\n"); htx[2] = NULL; + } else if (currmenu == MREPLACEWITH) { + htx[0] = N_("=== Replacement ===\n\n " + "Type the characters that should replace the characters that " + "you typed at the previous prompt, and press Enter.\n\n"); + htx[1] = N_(" The following function keys " + "are available at this prompt:\n\n"); + htx[2] = NULL; } else if (currmenu == MGOTOLINE) { htx[0] = N_("Go To Line Help Text\n\n " "Enter the line number that you wish to go to and hit "