nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] [PATCH] input: recognize the ^W^Y and ^W^V legacy keystroke


From: Benno Schulenberg
Subject: [Nano-devel] [PATCH] input: recognize the ^W^Y and ^W^V legacy keystrokes again
Date: Sun, 31 Mar 2019 14:36:42 +0200

The keystrokes are recognized and acted upon, but they are not visible
in the menu nor in the help text, and they cannot be rebound.  They are
there just to not frustrate the muscle memory of long-time users.

This fixes https://savannah.gnu.org/bugs/?56002.
Reported-by: Peter Zwegat <address@hidden>
---
 src/global.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/global.c b/src/global.c
index 3dd07882..25a6b5f9 100644
--- a/src/global.c
+++ b/src/global.c
@@ -1306,9 +1306,13 @@ void shortcut_init(void)
 #ifdef ENABLE_JUSTIFY
        add_to_sclist(MGOTOLINE, "^W", 0, do_para_begin_void, 0);
        add_to_sclist(MGOTOLINE, "^O", 0, do_para_end_void, 0);
+//     add_to_sclist(MWHEREIS, "^W", 0, do_para_begin_void, 0);
+//     add_to_sclist(MWHEREIS, "^O", 0, do_para_end_void, 0);
 #endif
        add_to_sclist(MGOTOLINE, "^Y", 0, to_first_line, 0);
        add_to_sclist(MGOTOLINE, "^V", 0, to_last_line, 0);
+       add_to_sclist(MWHEREIS, "^Y", 0, to_first_line, 0);
+       add_to_sclist(MWHEREIS, "^V", 0, to_last_line, 0);
 #ifdef ENABLE_BROWSER
        add_to_sclist(MWHEREISFILE, "^Y", 0, to_first_file, 0);
        add_to_sclist(MWHEREISFILE, "^V", 0, to_last_file, 0);
-- 
2.20.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]