Actually use last_replace if user just hits enter in do_replace with PICO_MODE on

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@307 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Chris Allegretta 2000-11-21 12:52:55 +00:00
parent 31c76660ed
commit c793c43e95
14 changed files with 52 additions and 47 deletions

View File

@ -11,10 +11,12 @@ CVS code -
search_init() search_init()
- Silly typo in our "one simple call" of statusq. Stopped - Silly typo in our "one simple call" of statusq. Stopped
previous search string from being displayed. previous search string from being displayed.
do_replace()
- Copy back the previous value of last_replace into answer if
using PICO_MODE and answer == ""
- nano.1, nano.1.html - nano.1, nano.1.html
- Updated man page for new -p definition. - Updated man page for new -p definition.
nano 0.9.20 - 11/18/2000 nano 0.9.20 - 11/18/2000
- General - General
- Ran source through indent -kr again. Make everything pretty. - Ran source through indent -kr again. Make everything pretty.

BIN
po/de.gmo

Binary file not shown.

View File

@ -7,7 +7,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: nano 0.9.17\n" "Project-Id-Version: nano 0.9.17\n"
"POT-Creation-Date: 2000-11-17 22:07-0500\n" "POT-Creation-Date: 2000-11-21 01:23-0500\n"
"PO-Revision-Date: 2000-09-09 11:55+0200\n" "PO-Revision-Date: 2000-09-09 11:55+0200\n"
"Last-Translator: Florian König <floki@bigfoot.com>\n" "Last-Translator: Florian König <floki@bigfoot.com>\n"
"Language-Team: German <floki@bigfoot.com>\n" "Language-Team: German <floki@bigfoot.com>\n"
@ -733,27 +733,27 @@ msgstr "Hauptprogramm: unteres Fenster\n"
msgid "Main: open file\n" msgid "Main: open file\n"
msgstr "Hauptprogramm: Datei öffnen\n" msgstr "Hauptprogramm: Datei öffnen\n"
#: nano.c:2150 #: nano.c:2153
#, fuzzy, c-format #, fuzzy, c-format
msgid "I got Alt-O-%c! (%d)\n" msgid "I got Alt-O-%c! (%d)\n"
msgstr "Erhielt Alt-[-%c! (%d)\n" msgstr "Erhielt Alt-[-%c! (%d)\n"
#: nano.c:2172 #: nano.c:2175
#, fuzzy, c-format #, fuzzy, c-format
msgid "I got Alt-[-1-%c! (%d)\n" msgid "I got Alt-[-1-%c! (%d)\n"
msgstr "Erhielt Alt-[-%c! (%d)\n" msgstr "Erhielt Alt-[-%c! (%d)\n"
#: nano.c:2205 #: nano.c:2208
#, fuzzy, c-format #, fuzzy, c-format
msgid "I got Alt-[-2-%c! (%d)\n" msgid "I got Alt-[-2-%c! (%d)\n"
msgstr "Erhielt Alt-[-%c! (%d)\n" msgstr "Erhielt Alt-[-%c! (%d)\n"
#: nano.c:2253 #: nano.c:2256
#, c-format #, c-format
msgid "I got Alt-[-%c! (%d)\n" msgid "I got Alt-[-%c! (%d)\n"
msgstr "Erhielt Alt-[-%c! (%d)\n" msgstr "Erhielt Alt-[-%c! (%d)\n"
#: nano.c:2279 #: nano.c:2282
#, c-format #, c-format
msgid "I got Alt-%c! (%d)\n" msgid "I got Alt-%c! (%d)\n"
msgstr "Erhielt Alt-%c! (%d)\n" msgstr "Erhielt Alt-%c! (%d)\n"

BIN
po/es.gmo

Binary file not shown.

View File

@ -7,7 +7,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 0.9.19+CVS\n" "Project-Id-Version: 0.9.19+CVS\n"
"POT-Creation-Date: 2000-11-17 22:07-0500\n" "POT-Creation-Date: 2000-11-21 01:23-0500\n"
"PO-Revision-Date: 2000-11-01 17:55+0100\n" "PO-Revision-Date: 2000-11-01 17:55+0100\n"
"Last-Translator: Jordi Mallach <jordi@sindominio.net>\n" "Last-Translator: Jordi Mallach <jordi@sindominio.net>\n"
"Language-Team: Spanish <es@li.org>\n" "Language-Team: Spanish <es@li.org>\n"
@ -727,27 +727,27 @@ msgstr "Main: ventana inferior\n"
msgid "Main: open file\n" msgid "Main: open file\n"
msgstr "Main: abrir fichero\n" msgstr "Main: abrir fichero\n"
#: nano.c:2150 #: nano.c:2153
#, c-format #, c-format
msgid "I got Alt-O-%c! (%d)\n" msgid "I got Alt-O-%c! (%d)\n"
msgstr "Pillé Alt-O-%c! (%d)\n" msgstr "Pillé Alt-O-%c! (%d)\n"
#: nano.c:2172 #: nano.c:2175
#, c-format #, c-format
msgid "I got Alt-[-1-%c! (%d)\n" msgid "I got Alt-[-1-%c! (%d)\n"
msgstr "Pillé Alt-[-1-%c! (%d)\n" msgstr "Pillé Alt-[-1-%c! (%d)\n"
#: nano.c:2205 #: nano.c:2208
#, c-format #, c-format
msgid "I got Alt-[-2-%c! (%d)\n" msgid "I got Alt-[-2-%c! (%d)\n"
msgstr "Pillé Alt-[-2-%c! (%d)\n" msgstr "Pillé Alt-[-2-%c! (%d)\n"
#: nano.c:2253 #: nano.c:2256
#, c-format #, c-format
msgid "I got Alt-[-%c! (%d)\n" msgid "I got Alt-[-%c! (%d)\n"
msgstr "Pillé Alt-[-%c! (%d)\n" msgstr "Pillé Alt-[-%c! (%d)\n"
#: nano.c:2279 #: nano.c:2282
#, c-format #, c-format
msgid "I got Alt-%c! (%d)\n" msgid "I got Alt-%c! (%d)\n"
msgstr "Pillé Alt-%c! (%d)\n" msgstr "Pillé Alt-%c! (%d)\n"

BIN
po/fi.gmo

Binary file not shown.

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: nano 0.9.11\n" "Project-Id-Version: nano 0.9.11\n"
"POT-Creation-Date: 2000-11-17 22:07-0500\n" "POT-Creation-Date: 2000-11-21 01:23-0500\n"
"PO-Revision-Date: 2000-06-21 23:08+03:00\n" "PO-Revision-Date: 2000-06-21 23:08+03:00\n"
"Last-Translator: Pauli Virtanen <pauli.virtanen@saunalahti.fi>\n" "Last-Translator: Pauli Virtanen <pauli.virtanen@saunalahti.fi>\n"
"Language-Team: Finnish <fi@li.org>\n" "Language-Team: Finnish <fi@li.org>\n"
@ -729,27 +729,27 @@ msgstr "P
msgid "Main: open file\n" msgid "Main: open file\n"
msgstr "Päätila: avaa tiedosto\n" msgstr "Päätila: avaa tiedosto\n"
#: nano.c:2150 #: nano.c:2153
#, fuzzy, c-format #, fuzzy, c-format
msgid "I got Alt-O-%c! (%d)\n" msgid "I got Alt-O-%c! (%d)\n"
msgstr "Vastaanotettu Alt-[-%c! (%d)\n" msgstr "Vastaanotettu Alt-[-%c! (%d)\n"
#: nano.c:2172 #: nano.c:2175
#, fuzzy, c-format #, fuzzy, c-format
msgid "I got Alt-[-1-%c! (%d)\n" msgid "I got Alt-[-1-%c! (%d)\n"
msgstr "Vastaanotettu Alt-[-%c! (%d)\n" msgstr "Vastaanotettu Alt-[-%c! (%d)\n"
#: nano.c:2205 #: nano.c:2208
#, fuzzy, c-format #, fuzzy, c-format
msgid "I got Alt-[-2-%c! (%d)\n" msgid "I got Alt-[-2-%c! (%d)\n"
msgstr "Vastaanotettu Alt-[-%c! (%d)\n" msgstr "Vastaanotettu Alt-[-%c! (%d)\n"
#: nano.c:2253 #: nano.c:2256
#, c-format #, c-format
msgid "I got Alt-[-%c! (%d)\n" msgid "I got Alt-[-%c! (%d)\n"
msgstr "Vastaanotettu Alt-[-%c! (%d)\n" msgstr "Vastaanotettu Alt-[-%c! (%d)\n"
#: nano.c:2279 #: nano.c:2282
#, c-format #, c-format
msgid "I got Alt-%c! (%d)\n" msgid "I got Alt-%c! (%d)\n"
msgstr "Vastaanotettu Alt-%c! (%d)\n" msgstr "Vastaanotettu Alt-%c! (%d)\n"

View File

@ -7,7 +7,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 0.8.9\n" "Project-Id-Version: 0.8.9\n"
"POT-Creation-Date: 2000-11-17 22:07-0500\n" "POT-Creation-Date: 2000-11-21 01:23-0500\n"
"PO-Revision-Date: 2000-07-09 01:32+0100\n" "PO-Revision-Date: 2000-07-09 01:32+0100\n"
"Last-Translator: Clement Laforet <sheep.killer@free.fr>\n" "Last-Translator: Clement Laforet <sheep.killer@free.fr>\n"
"Language-Team: French <LL@li.org>\n" "Language-Team: French <LL@li.org>\n"
@ -749,27 +749,27 @@ msgstr "Main: fen
msgid "Main: open file\n" msgid "Main: open file\n"
msgstr "Main: ouvrir fichier\n" msgstr "Main: ouvrir fichier\n"
#: nano.c:2150 #: nano.c:2153
#, fuzzy, c-format #, fuzzy, c-format
msgid "I got Alt-O-%c! (%d)\n" msgid "I got Alt-O-%c! (%d)\n"
msgstr "J'ai reçu Alt-[-%c! (%d)\n" msgstr "J'ai reçu Alt-[-%c! (%d)\n"
#: nano.c:2172 #: nano.c:2175
#, fuzzy, c-format #, fuzzy, c-format
msgid "I got Alt-[-1-%c! (%d)\n" msgid "I got Alt-[-1-%c! (%d)\n"
msgstr "J'ai reçu Alt-[-%c! (%d)\n" msgstr "J'ai reçu Alt-[-%c! (%d)\n"
#: nano.c:2205 #: nano.c:2208
#, fuzzy, c-format #, fuzzy, c-format
msgid "I got Alt-[-2-%c! (%d)\n" msgid "I got Alt-[-2-%c! (%d)\n"
msgstr "J'ai reçu Alt-[-%c! (%d)\n" msgstr "J'ai reçu Alt-[-%c! (%d)\n"
#: nano.c:2253 #: nano.c:2256
#, c-format #, c-format
msgid "I got Alt-[-%c! (%d)\n" msgid "I got Alt-[-%c! (%d)\n"
msgstr "J'ai reçu Alt-[-%c! (%d)\n" msgstr "J'ai reçu Alt-[-%c! (%d)\n"
#: nano.c:2279 #: nano.c:2282
#, c-format #, c-format
msgid "I got Alt-%c! (%d)\n" msgid "I got Alt-%c! (%d)\n"
msgstr "J'ai reçu Alt-%c! (%d)\n" msgstr "J'ai reçu Alt-%c! (%d)\n"

BIN
po/id.gmo

Binary file not shown.

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: nano-0.9.10\n" "Project-Id-Version: nano-0.9.10\n"
"POT-Creation-Date: 2000-11-17 22:07-0500\n" "POT-Creation-Date: 2000-11-21 01:23-0500\n"
"PO-Revision-Date: 2000-06-08 20:56+07:00\n" "PO-Revision-Date: 2000-06-08 20:56+07:00\n"
"Last-Translator: Tedi Heriyanto <tedi-h@usa.net>\n" "Last-Translator: Tedi Heriyanto <tedi-h@usa.net>\n"
"Language-Team: Indonesian <id@li.org>\n" "Language-Team: Indonesian <id@li.org>\n"
@ -728,27 +728,27 @@ msgstr "Main: jendela bawah\n"
msgid "Main: open file\n" msgid "Main: open file\n"
msgstr "Main: membuka file\n" msgstr "Main: membuka file\n"
#: nano.c:2150 #: nano.c:2153
#, fuzzy, c-format #, fuzzy, c-format
msgid "I got Alt-O-%c! (%d)\n" msgid "I got Alt-O-%c! (%d)\n"
msgstr "Saya mendapat Alt-%c! (%d)\n" msgstr "Saya mendapat Alt-%c! (%d)\n"
#: nano.c:2172 #: nano.c:2175
#, fuzzy, c-format #, fuzzy, c-format
msgid "I got Alt-[-1-%c! (%d)\n" msgid "I got Alt-[-1-%c! (%d)\n"
msgstr "Saya mendapat Alt-%c! (%d)\n" msgstr "Saya mendapat Alt-%c! (%d)\n"
#: nano.c:2205 #: nano.c:2208
#, fuzzy, c-format #, fuzzy, c-format
msgid "I got Alt-[-2-%c! (%d)\n" msgid "I got Alt-[-2-%c! (%d)\n"
msgstr "Saya mendapat Alt-%c! (%d)\n" msgstr "Saya mendapat Alt-%c! (%d)\n"
#: nano.c:2253 #: nano.c:2256
#, c-format #, c-format
msgid "I got Alt-[-%c! (%d)\n" msgid "I got Alt-[-%c! (%d)\n"
msgstr "Saya mendapat Alt-%c! (%d)\n" msgstr "Saya mendapat Alt-%c! (%d)\n"
#: nano.c:2279 #: nano.c:2282
#, c-format #, c-format
msgid "I got Alt-%c! (%d)\n" msgid "I got Alt-%c! (%d)\n"
msgstr "Saya mendapat Alt-%c! (%d)\n" msgstr "Saya mendapat Alt-%c! (%d)\n"

BIN
po/it.gmo

Binary file not shown.

View File

@ -7,7 +7,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 0.8.7\n" "Project-Id-Version: 0.8.7\n"
"POT-Creation-Date: 2000-11-17 22:07-0500\n" "POT-Creation-Date: 2000-11-21 01:23-0500\n"
"PO-Revision-Date: 2000-03-03 04:57+0100\n" "PO-Revision-Date: 2000-03-03 04:57+0100\n"
"Last-Translator: Daniele Medri <madrid@linux.it>\n" "Last-Translator: Daniele Medri <madrid@linux.it>\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
@ -715,27 +715,27 @@ msgstr "Main: finestra inferiore\n"
msgid "Main: open file\n" msgid "Main: open file\n"
msgstr "Main: apri file\n" msgstr "Main: apri file\n"
#: nano.c:2150 #: nano.c:2153
#, fuzzy, c-format #, fuzzy, c-format
msgid "I got Alt-O-%c! (%d)\n" msgid "I got Alt-O-%c! (%d)\n"
msgstr "Premuto Alt-[-%c! (%d)\n" msgstr "Premuto Alt-[-%c! (%d)\n"
#: nano.c:2172 #: nano.c:2175
#, fuzzy, c-format #, fuzzy, c-format
msgid "I got Alt-[-1-%c! (%d)\n" msgid "I got Alt-[-1-%c! (%d)\n"
msgstr "Premuto Alt-[-%c! (%d)\n" msgstr "Premuto Alt-[-%c! (%d)\n"
#: nano.c:2205 #: nano.c:2208
#, fuzzy, c-format #, fuzzy, c-format
msgid "I got Alt-[-2-%c! (%d)\n" msgid "I got Alt-[-2-%c! (%d)\n"
msgstr "Premuto Alt-[-%c! (%d)\n" msgstr "Premuto Alt-[-%c! (%d)\n"
#: nano.c:2253 #: nano.c:2256
#, c-format #, c-format
msgid "I got Alt-[-%c! (%d)\n" msgid "I got Alt-[-%c! (%d)\n"
msgstr "Premuto Alt-[-%c! (%d)\n" msgstr "Premuto Alt-[-%c! (%d)\n"
#: nano.c:2279 #: nano.c:2282
#, c-format #, c-format
msgid "I got Alt-%c! (%d)\n" msgid "I got Alt-%c! (%d)\n"
msgstr "Premuto Alt-%c! (%d)\n" msgstr "Premuto Alt-%c! (%d)\n"

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2000-11-21 01:19-0500\n" "POT-Creation-Date: 2000-11-21 07:49-0500\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"
@ -773,41 +773,41 @@ msgstr ""
msgid "Replaced 1 occurence" msgid "Replaced 1 occurence"
msgstr "" msgstr ""
#: search.c:479 search.c:572 search.c:588 #: search.c:479 search.c:575 search.c:591
msgid "Replace Cancelled" msgid "Replace Cancelled"
msgstr "" msgstr ""
#: search.c:522 #: search.c:525
msgid "Replace this instance?" msgid "Replace this instance?"
msgstr "" msgstr ""
#: search.c:530 #: search.c:533
msgid "Replace failed: unknown subexpression!" msgid "Replace failed: unknown subexpression!"
msgstr "" msgstr ""
#: search.c:613 #: search.c:616
#, c-format #, c-format
msgid "Replace with [%s]" msgid "Replace with [%s]"
msgstr "" msgstr ""
#: search.c:617 search.c:621 #: search.c:620 search.c:624
msgid "Replace with" msgid "Replace with"
msgstr "" msgstr ""
#. Ask for it #. Ask for it
#: search.c:656 #: search.c:659
msgid "Enter line number" msgid "Enter line number"
msgstr "" msgstr ""
#: search.c:658 #: search.c:661
msgid "Aborted" msgid "Aborted"
msgstr "" msgstr ""
#: search.c:678 #: search.c:681
msgid "Come on, be reasonable" msgid "Come on, be reasonable"
msgstr "" msgstr ""
#: search.c:683 #: search.c:686
#, c-format #, c-format
msgid "Only %d lines available, skipping to last line" msgid "Only %d lines available, skipping to last line"
msgstr "" msgstr ""

View File

@ -490,6 +490,9 @@ int do_replace_loop(char *prevanswer, filestruct *begin, int *beginx,
} }
} }
if (ISSET(PICO_MODE) && !strcmp(answer, ""))
answer = mallocstrcpy(answer, last_replace);
last_replace = mallocstrcpy(last_replace, answer); last_replace = mallocstrcpy(last_replace, answer);
while (1) { while (1) {