mileszs / ack.vim

Vim plugin for the Perl module / CLI script 'ack'
Other
3.08k stars 396 forks source link

avoid "ShowResults" calls unnecessarily #195

Open drgarcia1986 opened 7 years ago

drgarcia1986 commented 7 years ago

I'm using ack.vim with vim-dispatch integration but in every search a new panel is created unnecessarily. This little change solved this problem for me. Am I missing something?

drgarcia1986 commented 7 years ago

I took a better look at the code of SearchWithDispatch and now I understand how that's works. This command change the makeprog to use ack and call Make command (from vim-dispatch) right? This way will work as a simple vim-dispatch command, for this reason, don't need to create a new panel :smile:

(ps: I'm using tmux)