Commit 3d459ad8 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

nano.c:main() - Call load_file with arg 0 for insert, as we aren't really...

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
No related merge requests found
Showing with 6 additions and 2 deletions
+6 -2
CVS Code - CVS Code -
- nano.c: - 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). - Remove gettext markings from -p/--preserve (Jordi).
do_preserve_msg(): do_preserve_msg():
- Unsplit error message into a single fprintf call (Jordi). - Unsplit error message into a single fprintf call (Jordi).
......
...@@ -3421,7 +3421,7 @@ int main(int argc, char *argv[]) ...@@ -3421,7 +3421,7 @@ int main(int argc, char *argv[])
fprintf(stderr, _("Main: open file\n")); fprintf(stderr, _("Main: open file\n"));
#endif #endif
open_file(filename, 1, 1); open_file(filename, 0, 1);
#ifdef ENABLE_MULTIBUFFER #ifdef ENABLE_MULTIBUFFER
/* If we're using multibuffers and more than one file is specified /* 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 on the command line, load them all and switch to the first one
......
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