Commit 810632d6 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

Bug #46, discovered and fixed

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@245 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 19 additions and 8 deletions
+19 -8
...@@ -65,6 +65,8 @@ ...@@ -65,6 +65,8 @@
- The keypad does not work when nano runs in the Gnome terminal (43). [FIXED] - The keypad does not work when nano runs in the Gnome terminal (43). [FIXED]
- When reading in a file, if the file is a directory the contents of the - When reading in a file, if the file is a directory the contents of the
file being edited are blown away (discovered by Chris Pimlot) (44). [FIXED] file being edited are blown away (discovered by Chris Pimlot) (44). [FIXED]
- In replace, hitting the Goto line shortcut key does nothing after a
search string is entered (discovered by Rocco Corsi) (46) [FIXED].
** Open BUGS ** ** Open BUGS **
......
...@@ -17,6 +17,9 @@ CVS Code - ...@@ -17,6 +17,9 @@ CVS Code -
replace_abort() replace_abort()
- Add reset of placewewant, stops cursor from jumping when moving - Add reset of placewewant, stops cursor from jumping when moving
cursor after a replace. cursor after a replace.
do_replace()
- Added code for Gotoline key after entering the search term.
Fixes bug #46.
- winio.c - winio.c
nanogetstr() nanogetstr()
- Added check for 343 in while loop to get rid of getting "locked" - Added check for 343 in while loop to get rid of getting "locked"
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2000-10-26 08:48-0400\n" "POT-Creation-Date: 2000-10-27 00:34-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
...@@ -774,7 +774,7 @@ msgstr "" ...@@ -774,7 +774,7 @@ msgstr ""
msgid "Replaced 1 occurence" msgid "Replaced 1 occurence"
msgstr "" msgstr ""
#: search.c:392 search.c:421 search.c:446 #: search.c:392 search.c:421 search.c:449
msgid "Replace Cancelled" msgid "Replace Cancelled"
msgstr "" msgstr ""
...@@ -790,28 +790,28 @@ msgid "Replace with [%s]" ...@@ -790,28 +790,28 @@ msgid "Replace with [%s]"
msgstr "" msgstr ""
#. last_search is empty #. last_search is empty
#: search.c:444 #: search.c:447
msgid "Replace with" msgid "Replace with"
msgstr "" msgstr ""
#: search.c:487 #: search.c:493
msgid "Replace this instance?" msgid "Replace this instance?"
msgstr "" msgstr ""
#. Ask for it #. Ask for it
#: search.c:548 #: search.c:554
msgid "Enter line number" msgid "Enter line number"
msgstr "" msgstr ""
#: search.c:550 #: search.c:556
msgid "Aborted" msgid "Aborted"
msgstr "" msgstr ""
#: search.c:570 #: search.c:576
msgid "Come on, be reasonable" msgid "Come on, be reasonable"
msgstr "" msgstr ""
#: search.c:575 #: search.c:581
#, c-format #, c-format
msgid "Only %d lines available, skipping to last line" msgid "Only %d lines available, skipping to last line"
msgstr "" msgstr ""
......
...@@ -433,6 +433,9 @@ int do_replace(void) ...@@ -433,6 +433,9 @@ int do_replace(void)
do_replace(); do_replace();
return 0; return 0;
} else if (i == NANO_FROMSEARCHTOGOTO_KEY) { /* oops... */
do_gotoline_void();
return 0;
} else if (i != -2) { /* First page, last page, for example could get here */ } else if (i != -2) { /* First page, last page, for example could get here */
do_early_abort(); do_early_abort();
...@@ -456,6 +459,9 @@ int do_replace(void) ...@@ -456,6 +459,9 @@ int do_replace(void)
do_replace(); do_replace();
return -1; return -1;
} else if (i == NANO_FROMSEARCHTOGOTO_KEY) { /* oops... */
do_gotoline_void();
return 0;
} else if (i == NANO_NULL_KEY) } else if (i == NANO_NULL_KEY)
strcpy(last_replace, ""); strcpy(last_replace, "");
else { /* First line key, etc. */ else { /* First line key, etc. */
......
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