Commit 0aa22646 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

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
No related merge requests found
Showing with 4 additions and 3 deletions
+4 -3
...@@ -354,7 +354,7 @@ void shortcut_init(int unjustify) ...@@ -354,7 +354,7 @@ void shortcut_init(int unjustify)
"", *nano_execute_msg = "", *nano_dos_msg = "", *nano_execute_msg = "", *nano_dos_msg =
"", *nano_mac_msg = "", *nano_backup_msg = "", *nano_mac_msg = "", *nano_backup_msg =
"", *nano_editstr_msg = "", *nano_parabegin_msg = "", *nano_editstr_msg = "", *nano_parabegin_msg =
"", *nano_paraend_msg = ""; "", *nano_paraend_msg = "", *nano_fulljustify_msg = "";
#ifdef ENABLE_MULTIBUFFER #ifdef ENABLE_MULTIBUFFER
const char *nano_openprev_msg = "", *nano_opennext_msg = const char *nano_openprev_msg = "", *nano_opennext_msg =
...@@ -418,6 +418,7 @@ void shortcut_init(int unjustify) ...@@ -418,6 +418,7 @@ void shortcut_init(int unjustify)
nano_editstr_msg = _("Edit the previous search/replace strings"); nano_editstr_msg = _("Edit the previous search/replace strings");
nano_parabegin_msg = _("Go to the beginning of the current paragraph"); nano_parabegin_msg = _("Go to the beginning of the current paragraph");
nano_paraend_msg = _("Go to the end 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 #ifdef HAVE_REGEX_H
nano_regexp_msg = _("Use regular expressions"); nano_regexp_msg = _("Use regular expressions");
nano_bracket_msg = _("Find other bracket"); nano_bracket_msg = _("Find other bracket");
...@@ -686,8 +687,8 @@ void shortcut_init(int unjustify) ...@@ -686,8 +687,8 @@ void shortcut_init(int unjustify)
/* Translators: try to keep this string under 10 characters long */ /* Translators: try to keep this string under 10 characters long */
sc_init_one(&whereis_list, NANO_FULLJUSTIFY_KEY, _("FullJstify"), sc_init_one(&whereis_list, NANO_FULLJUSTIFY_KEY, _("FullJstify"),
IFHELP(nano_paraend_msg, NANO_NO_KEY), NANO_NO_KEY, IFHELP(nano_fulljustify_msg, NANO_NO_KEY), NANO_NO_KEY,
NANO_NO_KEY, VIEW, do_full_justify); NANO_NO_KEY, NOVIEW, do_full_justify);
#endif #endif
#ifndef NANO_SMALL #ifndef NANO_SMALL
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment