mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* editcmd.c (edit_block_process_cmd): Use execute(), not
my_system() to relieve interactive scripts, such as spell checker, from saving and restoring the terminal.
This commit is contained in:
parent
13b66d593e
commit
cbaceaafc9
@ -1,3 +1,9 @@
|
||||
2001-08-23 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* editcmd.c (edit_block_process_cmd): Use execute(), not
|
||||
my_system() to relieve interactive scripts, such as spell
|
||||
checker, from saving and restoring the terminal.
|
||||
|
||||
2001-08-19 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* gtkedit.c: Include <sys/param.h> if present - it should always
|
||||
|
@ -2996,13 +2996,12 @@ void edit_block_process_cmd (WEdit * edit, const char *shell_cmd, int block)
|
||||
edit_save_block (edit, b, start_mark, end_mark);
|
||||
|
||||
/* run your script */
|
||||
my_system (EXECUTE_AS_SHELL, shell,
|
||||
catstrs (home_dir, EDIT_DIR, shell_cmd, " ",
|
||||
execute (catstrs (home_dir, EDIT_DIR, shell_cmd, " ",
|
||||
edit->filename, " ", home_dir, BLOCK_FILE, " ",
|
||||
home_dir, ERROR_FILE, 0));
|
||||
|
||||
} else { /* for missing marked block run ... */
|
||||
my_system (0, shell, catstrs (EDIT_DIR, shell_cmd));
|
||||
execute (catstrs (EDIT_DIR, shell_cmd));
|
||||
}
|
||||
|
||||
edit_refresh_cmd (edit);
|
||||
|
Loading…
Reference in New Issue
Block a user