From b596639f95e24ba87c0714e9acfe27f09092a97a Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 31 Dec 2018 18:34:28 +0100 Subject: [PATCH] options: actually rename --rebindkeypad to --rawsequences (-K) --- doc/faq.html | 2 +- src/nano.c | 4 ++-- src/rcfile.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/faq.html b/doc/faq.html index 3c08efd3..e7b8b4b3 100644 --- a/doc/faq.html +++ b/doc/faq.html @@ -192,7 +192,7 @@

Bourne shell users (bash and sh): export TERM=vt100
C Shell users (tcsh and csh): setenv TERM vt100

4.3. Ack! My numeric keypad's keys don't work properly when NumLock is off! What can I do?

-

You can use the -K or --rebindkeypad option on the command line, or add the line set rebindkeypad to your .nanorc. However, nano's mouse support won't work properly if you do any of these things.

+

You can use the -K or --rawsequences option on the command line, or add the line set rawsequences to your .nanorc. However, nano's mouse support will be disabled if you do any of these things.

4.4. Ack! When I hold down a Meta key combination for a while, the character of the held key gets inserted now and then. What gives?

This was a bug in how nano handled consecutive escape sequences. It should be fixed since version 2.6.0.

4.5. How do I type the F13-F16 keys listed in the help viewer? My keyboard only has F1-F12!

diff --git a/src/nano.c b/src/nano.c index 263045bc..e4f91896 100644 --- a/src/nano.c +++ b/src/nano.c @@ -802,7 +802,7 @@ void usage(void) #ifdef ENABLE_NANORC print_opt("-I", "--ignorercfiles", N_("Don't look at nanorc files")); #endif - print_opt("-K", "--rebindkeypad", + print_opt("-K", "--rawsequences", N_("Fix numeric keypad key confusion problem")); print_opt("-L", "--nonewlines", N_("Don't add newlines to the ends of files")); @@ -1962,7 +1962,7 @@ int main(int argc, char **argv) #ifdef ENABLE_NANORC {"ignorercfiles", 0, NULL, 'I'}, #endif - {"rebindkeypad", 0, NULL, 'K'}, + {"rawsequences", 0, NULL, 'K'}, {"nonewlines", 0, NULL, 'L'}, #ifdef ENABLED_WRAPORJUSTIFY {"trimblanks", 0, NULL, 'M'}, diff --git a/src/rcfile.c b/src/rcfile.c index be714279..8718a30e 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -77,8 +77,8 @@ static const rcoption rcopts[] = { {"quotestr", 0}, #endif {"quickblank", QUICK_BLANK}, + {"rawsequences", RAW_SEQUENCES}, {"rebinddelete", REBIND_DELETE}, - {"rebindkeypad", RAW_SEQUENCES}, {"regexp", USE_REGEXP}, #ifdef ENABLE_SPELLER {"speller", 0},