From 0aa22646877086cf3759e13874529671026841d7 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Fri, 28 May 2004 14:42:50 +0000
Subject: [PATCH] fix problems caused by cut and paste of the do_para_end()
 shortcut for 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 | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/global.c b/src/global.c
index 43b2ade4..445b87d8 100644
--- a/src/global.c
+++ b/src/global.c
@@ -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
-- 
GitLab