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:
Chris Allegretta 2000-11-21 06:20:20 +00:00
parent f26bca74d0
commit 31c76660ed
3 changed files with 15 additions and 7 deletions

View File

@ -1,6 +1,10 @@
CVS code -
- AUTHORS
- 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:
findnextstr()
- Fix curent_x increment bug by using another variable (Rocco Corsi).
@ -10,6 +14,7 @@ CVS code -
- nano.1, nano.1.html
- Updated man page for new -p definition.
nano 0.9.20 - 11/18/2000
- General
- Ran source through indent -kr again. Make everything pretty.

5
nano.c
View File

@ -2117,7 +2117,10 @@ int main(int argc, char *argv[])
#endif
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();
else
open_file(filename, 0, 0);

View File

@ -6,7 +6,7 @@
msgid ""
msgstr ""
"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"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -702,27 +702,27 @@ msgstr ""
msgid "Main: open file\n"
msgstr ""
#: nano.c:2150
#: nano.c:2153
#, c-format
msgid "I got Alt-O-%c! (%d)\n"
msgstr ""
#: nano.c:2172
#: nano.c:2175
#, c-format
msgid "I got Alt-[-1-%c! (%d)\n"
msgstr ""
#: nano.c:2205
#: nano.c:2208
#, c-format
msgid "I got Alt-[-2-%c! (%d)\n"
msgstr ""
#: nano.c:2253
#: nano.c:2256
#, c-format
msgid "I got Alt-[-%c! (%d)\n"
msgstr ""
#: nano.c:2279
#: nano.c:2282
#, c-format
msgid "I got Alt-%c! (%d)\n"
msgstr ""