Making sure the user sees a fatal-error message.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4717 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Benno Schulenberg 2014-04-04 08:38:20 +00:00
parent d8bf887f2c
commit 7a254dd1fe
2 changed files with 3 additions and 1 deletions

View File

@ -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.

View 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"));