]> granicus.if.org Git - mutt/commitdiff
Make mutt_edit_file display error if editor return is non-zero. (closes #1638)
authorBrendan Cully <brendan@kublai.com>
Tue, 3 Apr 2007 00:15:45 +0000 (17:15 -0700)
committerBrendan Cully <brendan@kublai.com>
Tue, 3 Apr 2007 00:15:45 +0000 (17:15 -0700)
curs_lib.c

index 57bf7808034c311865765fe4c930928a080e1b15..70fca1710352e9510607b184d371eb7f45d66c6f 100644 (file)
@@ -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);
 }