nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 7a254dd1fe42b9e9382bcc6b0a64744d529216d4
parent d8bf887f2c7f57902732a92b4ee84f9416b51c86
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Fri,  4 Apr 2014 08:38:20 +0000

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

Diffstat:
MChangeLog | 2++
Msrc/rcfile.c | 2+-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git 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. diff --git a/src/rcfile.c b/src/rcfile.c @@ -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"));