diff --git a/ChangeLog b/ChangeLog index 3ab3c641cc096469ce366490de1a64095f3d9f09..dc39b8cfc193fe1c8e89f73ece1a7b56512a10f0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -61,6 +61,10 @@ CVS code - - Use size_t's instead of ints for the get_verbatim_kbinput() call and the loop that ungetch()es its returned int*, 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: - Since REGEXP_COMPILED is only used in search.c, convert it from a flag to a static int there. (DLR) diff --git a/src/nano.c b/src/nano.c index 3cc1485bea36ec972a65d01e2c1ff04b113718aa..51522c556d32c96ab25e03f6e9f49c12d65b2a1f 100644 --- a/src/nano.c +++ b/src/nano.c @@ -3515,7 +3515,7 @@ int main(int argc, char *argv[]) fprintf(stderr, "Main: open file\n"); #endif - open_file(filename, 0, 1); + open_file(filename, 0, 0); #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