Skip to content

Commit

Permalink
MakeWithShell triggering QuickFixCmdPre & QuickFixCmdPost
Browse files Browse the repository at this point in the history
  • Loading branch information
mMontu committed Jun 11, 2013
1 parent e7157d5 commit 1382495
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autoload/xolox/shell.vim
Expand Up @@ -162,10 +162,12 @@ function! xolox#shell#make(bang, args) " {{{1
endfunction

function! s:make_cmd(command)
doautocmd QuickFixCmdPre make,lmake
let command = a:command . ' 2>&1'
let result = xolox#misc#os#exec({'command': command, 'check': 0})
let g:xolox#shell#make_exit_code = result['exit_code']
return join(result['stdout'], "\n")
doautocmd QuickFixCmdPost make,lmake
endfunction

if !exists('g:xolox#shell#make_exit_code')
Expand Down

0 comments on commit 1382495

Please sign in to comment.