nano-devel
[Top][All Lists]
Advanced

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

[PATCH] Allow copying text in main menu in view mode


From: Hussam al-Homsi
Subject: [PATCH] Allow copying text in main menu in view mode
Date: Mon, 31 May 2021 23:10:34 -0400

Because it is useful for searching (especially for long text) while
viewing files.
For example, I often do select-copy-search-paste when browsing a library.
Plus it does not conflict with view mode since pasting is not allowed
in main menu.

---
 src/global.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/global.c b/src/global.c
index 1ca558f6..7998e2b3 100644
--- a/src/global.c
+++ b/src/global.c
@@ -841,7 +841,7 @@ void shortcut_init(void)
        add_to_funcs(do_mark, MMAIN,
                N_("Set Mark"), WITHORSANS(mark_gist), TOGETHER, VIEW);
        add_to_funcs(copy_text, MMAIN,
-               N_("Copy"), WITHORSANS(copy_gist), BLANKAFTER, NOVIEW);
+               N_("Copy"), WITHORSANS(copy_gist), BLANKAFTER, VIEW);
 #endif

        add_to_funcs(case_sens_void, MWHEREIS|MREPLACE,
-- 
2.20.1



reply via email to

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