* editcmd.c (edit_block_process_cmd): Restore third argument

(but make it /dev/null) for compatibility with old scripts.
Reported by Andrew V. Samoilov <sav@bcs.zp.ua>
This commit is contained in:
Pavel Roskin 2002-09-01 23:20:37 +00:00
parent 64605f4785
commit 9a5bacf175
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2002-09-01 Pavel Roskin <proski@gnu.org>
* editcmd.c (edit_block_process_cmd): Restore third argument
(but make it /dev/null) for compatibility with old scripts.
Reported by Andrew V. Samoilov <sav@bcs.zp.ua>
2002-08-31 Pavel Roskin <proski@gnu.org>
* editwidget.c (edit): Avoid passing an uninitialized color

View File

@ -2246,10 +2246,12 @@ edit_block_process_cmd (WEdit * edit, const char *shell_cmd, int block)
* Arguments:
* $1 - name of the edited file (to check its extention etc).
* $2 - file containing the current block.
* $3 - file where error messages should be put.
* $3 - file where error messages should be put
* (for compatibility with old scripts).
*/
system (catstrs (" ", home_dir, EDIT_DIR, shell_cmd, " ",
edit->filename, " ", home_dir, BLOCK_FILE, NULL));
edit->filename, " ", home_dir, BLOCK_FILE,
" /dev/null", NULL));
} else {
/*