Commit 97133f59 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

in main(), don't open the first file in quiet mode, since if we do, an

error message won't be shown if it's unreadable


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1739 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 5 additions and 1 deletion
+5 -1
...@@ -61,6 +61,10 @@ CVS code - ...@@ -61,6 +61,10 @@ CVS code -
- Use size_t's instead of ints for the get_verbatim_kbinput() - Use size_t's instead of ints for the get_verbatim_kbinput()
call and the loop that ungetch()es its returned int*, call and the loop that ungetch()es its returned int*,
respectively. (DLR) respectively. (DLR)
main()
- Don't open the first file in quiet mode, since if we do, an
error message won't be shown if it's unreadable. (DLR; found
by Jaap Eldering)
- nano.h: - nano.h:
- Since REGEXP_COMPILED is only used in search.c, convert it - Since REGEXP_COMPILED is only used in search.c, convert it
from a flag to a static int there. (DLR) from a flag to a static int there. (DLR)
......
...@@ -3515,7 +3515,7 @@ int main(int argc, char *argv[]) ...@@ -3515,7 +3515,7 @@ int main(int argc, char *argv[])
fprintf(stderr, "Main: open file\n"); fprintf(stderr, "Main: open file\n");
#endif #endif
open_file(filename, 0, 1); open_file(filename, 0, 0);
#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