commit ae9eea7634052c1fdf1df938f2774797e1fdd7ac
parent e74851451dd18147f57e6cf51c3a80caca8a1c61
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Thu, 10 Nov 2005 07:40:55 +0000
use more intuitive descriptions for the scrolling keys
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3151 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/global.c b/src/global.c
@@ -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
diff --git a/src/nano.h b/src/nano.h
@@ -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