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:
parent
a14ef64149
commit
2d2f11afc1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user