nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit b9eb2be29526e72dde151cb455b58cc3a8d7c3b1
parent 9461dbd72d30d84d5886603e29cb8876a503fea1
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Wed, 19 Apr 2006 22:55:37 +0000

in shortcut_init(), in the main shortcut list, move the "Refresh"
shortcut down to after the "Enter" shortcut, for consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3394 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 2++
Msrc/global.c | 12++++++------
2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -70,6 +70,8 @@ CVS code - shortcut_init() - Change the cursor position display help text to use "display" instead of "show", for consistency. (DLR) + - In the main shortcut list, move the "Refresh" shortcut down to + after the "Enter" shortcut, for consistency. (DLR) - rcfile.c: parse_argument() - Rename variable ptr_bak to ptr_save, for consistency. (DLR) diff --git a/src/global.c b/src/global.c @@ -344,8 +344,6 @@ void shortcut_init(bool unjustify) N_("Move to the beginning of the current line"); const char *nano_end_msg = N_("Move to the end of the current line"); - const char *nano_refresh_msg = - N_("Refresh (redraw) the current screen"); const char *nano_delete_msg = N_("Delete the character under the cursor"); const char *nano_backspace_msg = @@ -354,6 +352,8 @@ void shortcut_init(bool unjustify) N_("Insert a tab character at the cursor position"); const char *nano_enter_msg = N_("Insert a carriage return at the cursor position"); + const char *nano_refresh_msg = + N_("Refresh (redraw) the current screen"); #ifndef NANO_TINY const char *nano_nextword_msg = N_("Move forward one word"); const char *nano_prevword_msg = N_("Move backward one word"); @@ -590,10 +590,6 @@ void shortcut_init(bool unjustify) IFHELP(nano_end_msg, NANO_NO_KEY), NANO_NO_KEY, NANO_NO_KEY, VIEW, do_end); - sc_init_one(&main_list, NANO_REFRESH_KEY, refresh_msg, - IFHELP(nano_refresh_msg, NANO_NO_KEY), NANO_NO_KEY, NANO_NO_KEY, - VIEW, total_refresh); - sc_init_one(&main_list, NANO_DELETE_KEY, N_("Delete"), IFHELP(nano_delete_msg, NANO_NO_KEY), NANO_NO_KEY, NANO_NO_KEY, NOVIEW, do_delete); @@ -610,6 +606,10 @@ void shortcut_init(bool unjustify) IFHELP(nano_enter_msg, NANO_NO_KEY), NANO_NO_KEY, NANO_NO_KEY, NOVIEW, do_enter); + sc_init_one(&main_list, NANO_REFRESH_KEY, refresh_msg, + IFHELP(nano_refresh_msg, NANO_NO_KEY), NANO_NO_KEY, NANO_NO_KEY, + VIEW, total_refresh); + #ifndef DISABLE_HELP /* This entry is blank, in order to make the help text easier to * read. */