Skip to content

Commit

Permalink
Don't repeat executable name in s:executables values
Browse files Browse the repository at this point in the history
In preparation for making it possible to override the options, let's not
mash the executable and the options together.
  • Loading branch information
wincent committed Dec 25, 2018
1 parent 4cc2a2f commit 92775fd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions autoload/ferret/private.vim
Original file line number Diff line number Diff line change
Expand Up @@ -610,10 +610,10 @@ endfunction
let s:force=get(g:, 'FerretExecutable', 'rg,ag,ack,ack-grep')

let s:executables={
\ 'rg': 'rg --vimgrep --no-heading',
\ 'ag': 'ag',
\ 'ack': 'ack --column --with-filename',
\ 'ack-grep': 'ack-grep --column --with-filename'
\ 'rg': '--vimgrep --no-heading',
\ 'ag': '',
\ 'ack': '--column --with-filename',
\ 'ack-grep': '--column --with-filename'
\ }

let s:init_done=0
Expand Down Expand Up @@ -666,7 +666,7 @@ function! ferret#private#executable() abort
endif
for l:executable in l:executables
if executable(l:executable)
return s:executables[l:executable]
return l:executable . ' ' . s:executables[l:executable]
endif
endfor
return ''
Expand Down

0 comments on commit 92775fd

Please sign in to comment.