1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 04:30:04 +08:00

Fix exclude syntax (-g) for rg util

In rg values given to -g must be quoted or your shell will expand them
and result in unexpected behavior. For example: rg -g '\<glob\>'.
This commit is contained in:
Javier Tiá 2017-05-15 10:23:06 -06:00
parent a14ef64149
commit 2d2f11afc1

View File

@ -277,7 +277,7 @@ fu! zvim#util#Generate_ignore(ignore,tool) abort
elseif a:tool ==# 'rg'
for ig in split(a:ignore,',')
call add(ignore, '-g')
call add(ignore, '!' . ig)
call add(ignore, "'!" . ig . "'")
endfor
endif
return ignore