diff options
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 9deeae42f..23dbcd5ad 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -949,9 +949,14 @@ do_bang(addr_count, eap, forceit, do_in, do_out) do_shell(newcmd, 0); } else /* :range! */ + { /* Careful: This may recursively call do_bang() again! (because of * autocommands) */ do_filter(line1, line2, eap, newcmd, do_in, do_out); +#ifdef FEAT_AUTOCMD + apply_autocmds(EVENT_SHELLFILTERPOST, NULL, NULL, FALSE, curbuf); +#endif + } if (free_newcmd) vim_free(newcmd); } @@ -1419,6 +1424,10 @@ do_shell(cmd, flags) /* display any error messages now */ display_errors(); + +#ifdef FEAT_AUTOCMD + apply_autocmds(EVENT_SHELLCMDPOST, NULL, NULL, FALSE, curbuf); +#endif } /* |