From e328ae9423f05c85c6977f73791c56daf48af45a Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Thu, 25 May 2006 04:02:50 +0000
Subject: [PATCH] in shortcut_init(), remove the "Go To Line" shortcut in the
 replace shortcut list, for compatibility with Pico

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3564 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 ChangeLog    | 2 ++
 src/global.c | 6 +-----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index b3efc5da..91d6bff3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -181,6 +181,8 @@ CVS code -
 	- Clarify the descriptions of the "Search" and "Replace"
 	  shortcuts, and add spaces to the "Exit" shortcut's description
 	  in multibuffer mode. (Benno Schulenberg)
+	- Remove the "Go To Line" shortcut in the replace shortcut list,
+	  for compatibility with Pico. (DLR)
   toggle_init()
 	- In the global toggle list, move the "Constant cursor position
 	  display" toggle up to after the "Use more space for editing"
diff --git a/src/global.c b/src/global.c
index b3ffb3f5..80c77e13 100644
--- a/src/global.c
+++ b/src/global.c
@@ -826,15 +826,11 @@ void shortcut_init(bool unjustify)
 	IFHELP(nano_lastline_msg, FALSE), NANO_LASTLINE_ALTKEY,
 	NANO_LASTLINE_FKEY, NANO_LASTLINE_ALTKEY2, VIEW, do_last_line);
 
-    /* TRANSLATORS: Try to keep this at most 10 characters. */
+    /* TRANSLATORS: Try to keep this at most 12 characters. */
     sc_init_one(&replace_list, NANO_TOOTHERSEARCH_KEY, N_("No Replace"),
 	IFHELP(nano_whereis_msg, FALSE), NANO_NO_KEY, NANO_REPLACE_FKEY,
 	NANO_NO_KEY, VIEW, NULL);
 
-    sc_init_one(&replace_list, NANO_TOGOTOLINE_KEY, go_to_line_msg,
-	IFHELP(nano_gotoline_msg, FALSE), NANO_NO_KEY,
-	NANO_GOTOLINE_FKEY, NANO_NO_KEY, VIEW, NULL);
-
 #ifndef NANO_TINY
     sc_init_one(&replace_list, NANO_NO_KEY, case_sens_msg,
 	IFHELP(nano_case_msg, FALSE), TOGGLE_CASE_KEY, NANO_NO_KEY,
-- 
GitLab