]> git.wh0rd.org Git - nano.git/commitdiff
use more intuitive descriptions for the scrolling keys
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 10 Nov 2005 07:40:55 +0000 (07:40 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 10 Nov 2005 07:40:55 +0000 (07:40 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3151 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/global.c
src/nano.h

index a76c3e4a803dd84dba9c62d210ae660994b93018..532b558fa29f320dc46b499a2361c4903d4dc3d8 100644 (file)
@@ -288,9 +288,9 @@ void shortcut_init(bool unjustify)
     const char *nano_prevword_msg = N_("Move backward one word");
     const char *nano_wordcount_msg =
        N_("Count the number of words, lines, and characters");
-    const char *nano_scrollprev_msg =
+    const char *nano_scrollup_msg =
        N_("Scroll up one line without scrolling the cursor");
-    const char *nano_scrollnext_msg =
+    const char *nano_scrolldown_msg =
        N_("Scroll down one line without scrolling the cursor");
 #endif
 #ifndef DISABLE_JUSTIFY
@@ -545,13 +545,13 @@ void shortcut_init(bool unjustify)
        IFHELP(nano_wordcount_msg, NANO_WORDCOUNT_KEY), NANO_NO_KEY,
        NANO_NO_KEY, VIEW, do_wordlinechar_count);
 
-    sc_init_one(&main_list, NANO_NO_KEY, N_("ScrollPrev"),
-       IFHELP(nano_scrollprev_msg, NANO_SCROLLPREV_KEY), NANO_NO_KEY,
-       NANO_SCROLLPREV_ALTKEY, VIEW, do_scroll_up);
+    sc_init_one(&main_list, NANO_NO_KEY, N_("Scroll Up"),
+       IFHELP(nano_scrollup_msg, NANO_SCROLLUP_KEY), NANO_NO_KEY,
+       NANO_SCROLLUP_ALTKEY, VIEW, do_scroll_up);
 
-    sc_init_one(&main_list, NANO_NO_KEY, N_("ScrollNext"),
-       IFHELP(nano_scrollnext_msg, NANO_SCROLLNEXT_KEY), NANO_NO_KEY,
-       NANO_SCROLLNEXT_ALTKEY, VIEW, do_scroll_down);
+    sc_init_one(&main_list, NANO_NO_KEY, N_("Scroll Down"),
+       IFHELP(nano_scrolldown_msg, NANO_SCROLLDOWN_KEY), NANO_NO_KEY,
+       NANO_SCROLLDOWN_ALTKEY, VIEW, do_scroll_down);
 #endif
 
 #ifndef DISABLE_JUSTIFY
index bad9f2a00909ceacb6176bab6c1a09fa0b78ad71..c59f79aaff1ee9f485d1d49277116a09575ec2af 100644 (file)
@@ -478,10 +478,10 @@ typedef struct rcoption {
 #define NANO_NEXTWORD_KEY      NANO_CONTROL_SPACE
 #define NANO_PREVWORD_KEY      NANO_ALT_SPACE
 #define NANO_WORDCOUNT_KEY     NANO_ALT_D
-#define NANO_SCROLLPREV_KEY    NANO_ALT_MINUS
-#define NANO_SCROLLNEXT_KEY    NANO_ALT_PLUS
-#define NANO_SCROLLPREV_ALTKEY NANO_ALT_USCORE
-#define NANO_SCROLLNEXT_ALTKEY NANO_ALT_EQUALS
+#define NANO_SCROLLUP_KEY      NANO_ALT_MINUS
+#define NANO_SCROLLDOWN_KEY    NANO_ALT_PLUS
+#define NANO_SCROLLUP_ALTKEY   NANO_ALT_USCORE
+#define NANO_SCROLLDOWN_ALTKEY NANO_ALT_EQUALS
 #define NANO_CUTTILLEND_KEY    NANO_CONTROL_X
 #define NANO_CUTTILLEND_ALTKEY NANO_ALT_T
 #define NANO_PARABEGIN_KEY     NANO_CONTROL_W