]> git.wh0rd.org Git - nano.git/commitdiff
Making sure the user sees a fatal-error message.
authorBenno Schulenberg <bensberg@justemail.net>
Fri, 4 Apr 2014 08:38:20 +0000 (08:38 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Fri, 4 Apr 2014 08:38:20 +0000 (08:38 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4717 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/rcfile.c

index 3fbc29af17b8775bd64186784330e0f719d4abea..61add1b5ae3088a0dd8c3c52459dad52ad6d86d4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
        * src/{files.c,nano.c}: Avoid two more compilation warnings.
        * configure.ac: Allow --enable-extra and --enable-multibuffer
        to override --enable-tiny.
+       * src/rcfile.c (check_vitals_mapped): Do not allow 'set quiet'
+       to suppress a fatal-error message, make sure the user sees it.
 
 2014-04-03  Benno Schulenberg  <bensberg@justemail.net>
        * configure.ac: Remove unused '*_support' variables.
index 541608917d370f162c79632754a67fc87b194580..4ec8eccdefe6c85d7aadbd3a591d590a04052c9d 100644 (file)
@@ -1001,7 +1001,7 @@ static void check_vitals_mapped(void)
            if (f->scfunc == vitals[v] && f->menus & inmenus[v]) {
                const sc *s = first_sc_for(inmenus[v], f->scfunc);
                if (!s) {
-                   rcfile_error(N_("Fatal error: no keys mapped for function \"%s\""),
+                   fprintf(stderr, _("Fatal error: no keys mapped for function \"%s\".\n"),
                        f->desc);
                    fprintf(stderr, _("Exiting.  If needed, use nano with the -I option "
                                     "to adjust your nanorc settings.\n"));