mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-25 06:09:38 +03:00
Changed check from argc == 1 to argv[optind] == NULL to display "New File" in statusbar or not
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@306 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
f26bca74d0
commit
31c76660ed
@ -1,6 +1,10 @@
|
|||||||
CVS code -
|
CVS code -
|
||||||
- AUTHORS
|
- AUTHORS
|
||||||
- Added Rocco Corsi.
|
- Added Rocco Corsi.
|
||||||
|
- nano.c:
|
||||||
|
main()
|
||||||
|
- Changed check for argc == 1 to argv[optind] == NULL to decide
|
||||||
|
whether or not to display "New File" in the statusbar.
|
||||||
- search.c:
|
- search.c:
|
||||||
findnextstr()
|
findnextstr()
|
||||||
- Fix curent_x increment bug by using another variable (Rocco Corsi).
|
- Fix curent_x increment bug by using another variable (Rocco Corsi).
|
||||||
@ -10,6 +14,7 @@ CVS code -
|
|||||||
- 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.
|
||||||
|
5
nano.c
5
nano.c
@ -2117,7 +2117,10 @@ int main(int argc, char *argv[])
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
titlebar();
|
titlebar();
|
||||||
if (argc == 1)
|
|
||||||
|
/* Now we check to see if argv[optind] is non-null to determine if
|
||||||
|
we're dealing with a new file or not, not argc == 1... */
|
||||||
|
if (argv[optind] == NULL)
|
||||||
new_file();
|
new_file();
|
||||||
else
|
else
|
||||||
open_file(filename, 0, 0);
|
open_file(filename, 0, 0);
|
||||||
|
12
po/nano.pot
12
po/nano.pot
@ -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-20 17:19-0500\n"
|
"POT-Creation-Date: 2000-11-21 01:19-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"
|
||||||
@ -702,27 +702,27 @@ msgstr ""
|
|||||||
msgid "Main: open file\n"
|
msgid "Main: open file\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: 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 ""
|
msgstr ""
|
||||||
|
|
||||||
#: 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 ""
|
msgstr ""
|
||||||
|
|
||||||
#: 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 ""
|
msgstr ""
|
||||||
|
|
||||||
#: 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 ""
|
msgstr ""
|
||||||
|
|
||||||
#: 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 ""
|
msgstr ""
|
||||||
|
Loading…
Reference in New Issue
Block a user