From: Brendan Cully Date: Tue, 3 Apr 2007 00:15:45 +0000 (-0700) Subject: Make mutt_edit_file display error if editor return is non-zero. (closes #1638) X-Git-Tag: mutt-1-5-15-rel~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7da3c81f64692b2888eb5bf098f3fbdb78847da1;p=mutt Make mutt_edit_file display error if editor return is non-zero. (closes #1638) --- diff --git a/curs_lib.c b/curs_lib.c index 57bf7808..70fca171 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -162,8 +162,11 @@ void mutt_edit_file (const char *editor, const char *data) mutt_endwin (NULL); mutt_expand_file_fmt (cmd, sizeof (cmd), editor, data); - if (mutt_system (cmd) == -1) + if (mutt_system (cmd)) + { mutt_error (_("Error running \"%s\"!"), cmd); + mutt_sleep (2); + } keypad (stdscr, TRUE); clearok (stdscr, TRUE); }