]> git.wh0rd.org Git - nano.git/commitdiff
fix problems caused by cut and paste of the do_para_end() shortcut for
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Fri, 28 May 2004 14:42:50 +0000 (14:42 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Fri, 28 May 2004 14:42:50 +0000 (14:42 +0000)
the do_full_justify() shortcut: don't allow the latter to work in view
mode, and have it display its own message instead of the do_para_end()
shortcut's message

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

src/global.c

index 43b2ade4f98210ab02de28459905ae733714789b..445b87d8f2aba6e28865226f38b7a5022ac8808c 100644 (file)
@@ -354,7 +354,7 @@ void shortcut_init(int unjustify)
        "", *nano_execute_msg = "", *nano_dos_msg =
        "", *nano_mac_msg = "", *nano_backup_msg =
        "", *nano_editstr_msg = "", *nano_parabegin_msg =
-       "", *nano_paraend_msg = "";
+       "", *nano_paraend_msg = "", *nano_fulljustify_msg = "";
 
 #ifdef ENABLE_MULTIBUFFER
     const char *nano_openprev_msg = "", *nano_opennext_msg =
@@ -418,6 +418,7 @@ void shortcut_init(int unjustify)
     nano_editstr_msg = _("Edit the previous search/replace strings");
     nano_parabegin_msg = _("Go to the beginning of the current paragraph");
     nano_paraend_msg = _("Go to the end of the current paragraph");
+    nano_fulljustify_msg = _("Justify the entire file");
 #ifdef HAVE_REGEX_H
     nano_regexp_msg = _("Use regular expressions");
     nano_bracket_msg = _("Find other bracket");
@@ -686,8 +687,8 @@ void shortcut_init(int unjustify)
 
     /* Translators: try to keep this string under 10 characters long */
     sc_init_one(&whereis_list, NANO_FULLJUSTIFY_KEY, _("FullJstify"),
-               IFHELP(nano_paraend_msg, NANO_NO_KEY), NANO_NO_KEY,
-               NANO_NO_KEY, VIEW, do_full_justify);
+               IFHELP(nano_fulljustify_msg, NANO_NO_KEY), NANO_NO_KEY,
+               NANO_NO_KEY, NOVIEW, do_full_justify);
 #endif
 
 #ifndef NANO_SMALL