mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-30 16:14:31 +08:00
Fix #22 - Escape ! in the command
This commit is contained in:
@@ -456,10 +456,10 @@ function! fzf#vim#tags(...)
|
||||
" We don't want to apply --ansi option when tags file is large as it makes
|
||||
" processing much slower.
|
||||
if getfsize(tagfile) > 1024 * 1024 * 20
|
||||
let proc = 'grep -v ''^!'' '
|
||||
let proc = 'grep -v ''^\!'' '
|
||||
let copt = ''
|
||||
else
|
||||
let proc = 'perl -ne ''unless (/^!/) { s/^(.*?)\t(.*?)\t/\x1b[33m\1\x1b[m\t\x1b[34m\2\x1b[m\t/; print }'' '
|
||||
let proc = 'perl -ne ''unless (/^\!/) { s/^(.*?)\t(.*?)\t/\x1b[33m\1\x1b[m\t\x1b[34m\2\x1b[m\t/; print }'' '
|
||||
let copt = '--ansi '
|
||||
endif
|
||||
call s:fzf({
|
||||
|
||||
Reference in New Issue
Block a user