Skip to content

Commit

Permalink
fixes #129
Browse files Browse the repository at this point in the history
  • Loading branch information
kassio committed May 12, 2014
1 parent 4eb9aaa commit 537fb81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion autoload/ack.vim
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function! ack#Ack(cmd, args)
" NOTE: we escape special chars, but not everything using shellescape to
" allow for passing arguments etc
if g:ack_use_dispatch
let &l:errorformat = "%P%f,%l:%c:%m,%-Q"
let &l:errorformat = "%P%f,%l:%c:%m,%-Q,%f:%l:%c:%m"
let &l:makeprg=g:ackprg." " . escape(l:grepargs, '|#%')
Make
else
Expand All @@ -51,6 +51,8 @@ function! ack#Ack(cmd, args)

if !g:ack_use_dispatch
call ack#show_results()
else
copen
endif
call <SID>apply_maps()
call <SID>highlight(l:grepargs)
Expand Down
3 changes: 0 additions & 3 deletions plugin/ack.vim
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ endif

if !exists("g:ack_use_dispatch")
let g:ack_use_dispatch = 0
elseif g:ack_use_dispatch && !exists(":Dispatch")
echoe "Dispatch not available"
let g:ack_use_dispatch = 0
end

let s:ack_mappings = {
Expand Down

0 comments on commit 537fb81

Please sign in to comment.