From 537fb8183fabaccde6b100c9b43a147eab0db8a4 Mon Sep 17 00:00:00 2001 From: Kassio Borges Date: Mon, 12 May 2014 11:58:32 -0300 Subject: [PATCH] fixes #129 --- autoload/ack.vim | 4 +++- plugin/ack.vim | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/autoload/ack.vim b/autoload/ack.vim index 4759d62a..4fc54a70 100644 --- a/autoload/ack.vim +++ b/autoload/ack.vim @@ -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 @@ -51,6 +51,8 @@ function! ack#Ack(cmd, args) if !g:ack_use_dispatch call ack#show_results() + else + copen endif call apply_maps() call highlight(l:grepargs) diff --git a/plugin/ack.vim b/plugin/ack.vim index 100d55e2..de9cc16a 100644 --- a/plugin/ack.vim +++ b/plugin/ack.vim @@ -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 = {