nano.c:main() - Call load_file with arg 0 for insert, as we aren't really doing an insert, allows new_file() to run if we open a non-file at startup

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1382 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Chris Allegretta 2003-01-22 01:09:40 +00:00
parent 73a7e7f450
commit 3d459ad83d
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,10 @@
CVS Code -
- nano.c:
usage():
main()
- Call load_file with arg 0 for insert, as we aren't really
doing an insert, allows new_file() to run if we open a
non-file at startup.
usage()
- Remove gettext markings from -p/--preserve (Jordi).
do_preserve_msg():
- Unsplit error message into a single fprintf call (Jordi).

2
nano.c
View File

@ -3421,7 +3421,7 @@ int main(int argc, char *argv[])
fprintf(stderr, _("Main: open file\n"));
#endif
open_file(filename, 1, 1);
open_file(filename, 0, 1);
#ifdef ENABLE_MULTIBUFFER
/* If we're using multibuffers and more than one file is specified
on the command line, load them all and switch to the first one