Allow ShellCmdPost to fire inside :Make

This was trying to block `au QuickFixCmdPost * copen` as it interfered
with restoring the working directory, but that was mainly a concern for
the other half of the conditional, so restore it to enable the status
buffer to reload.
This commit is contained in:
Tim Pope
2019-01-11 14:11:25 -05:00
parent 07845537d7
commit fe467f78bc

View File

@@ -3178,7 +3178,7 @@ function! s:Dispatch(bang, args)
let &l:errorformat = s:common_efm let &l:errorformat = s:common_efm
let &l:makeprg = substitute(s:UserCommand() . ' ' . a:args, '\s\+$', '', '') let &l:makeprg = substitute(s:UserCommand() . ' ' . a:args, '\s\+$', '', '')
if exists(':Make') == 2 if exists(':Make') == 2
noautocmd Make Make
else else
silent noautocmd make! silent noautocmd make!
redraw! redraw!