nano-devel
[Top][All Lists]
Advanced

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

[Nano-devel] [PATCH 1/2] bindings: rename 'prevhistory' to 'older' and '


From: Benno Schulenberg
Subject: [Nano-devel] [PATCH 1/2] bindings: rename 'prevhistory' to 'older' and 'nexthistory' to 'newer'
Date: Mon, 8 Oct 2018 20:03:56 +0200

Rename not only the bindable functions, but more importantly reword the
tags that are shown for ^P and ^N in the help lines: "Older" / "Newer".
---
 src/global.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/global.c b/src/global.c
index a19b0db2..cceeb57b 100644
--- a/src/global.c
+++ b/src/global.c
@@ -645,9 +645,9 @@ void shortcut_init(void)
        const char *regexp_gist =
                N_("Toggle the use of regular expressions");
 #ifdef ENABLE_HISTORIES
-       const char *prevhistory_gist =
+       const char *older_gist =
                N_("Recall the previous search/replace string");
-       const char *nexthistory_gist =
+       const char *newer_gist =
                N_("Recall the next search/replace string");
 #endif
 #ifndef NANO_TINY
@@ -982,9 +982,9 @@ void shortcut_init(void)
 #endif
 #ifdef ENABLE_HISTORIES
        add_to_funcs(get_history_older_void, 
MWHEREIS|MREPLACE|MREPLACEWITH|MWHEREISFILE,
-               N_("PrevHstory"), WITHORSANS(prevhistory_gist), TOGETHER, VIEW);
+               N_("Older"), WITHORSANS(older_gist), TOGETHER, VIEW);
        add_to_funcs(get_history_newer_void, 
MWHEREIS|MREPLACE|MREPLACEWITH|MWHEREISFILE,
-               N_("NextHstory"), WITHORSANS(nexthistory_gist), BLANKAFTER, 
VIEW);
+               N_("Newer"), WITHORSANS(newer_gist), BLANKAFTER, VIEW);
 #endif
 
 #ifndef ENABLE_JUSTIFY
@@ -1596,9 +1596,9 @@ sc *strtosc(const char *input)
                         !strcasecmp(input, "gototext"))  /* Deprecated.  
Remove end of 2018. */
                s->func = flip_goto;
 #ifdef ENABLE_HISTORIES
-       else if (!strcasecmp(input, "prevhistory"))
+       else if (!strcasecmp(input, "older"))
                s->func = get_history_older_void;
-       else if (!strcasecmp(input, "nexthistory"))
+       else if (!strcasecmp(input, "newer"))
                s->func = get_history_newer_void;
 #endif
 #ifndef NANO_TINY
-- 
2.17.1




reply via email to

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