mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-02-15 14:32:06 +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
|
" We don't want to apply --ansi option when tags file is large as it makes
|
||||||
" processing much slower.
|
" processing much slower.
|
||||||
if getfsize(tagfile) > 1024 * 1024 * 20
|
if getfsize(tagfile) > 1024 * 1024 * 20
|
||||||
let proc = 'grep -v ''^!'' '
|
let proc = 'grep -v ''^\!'' '
|
||||||
let copt = ''
|
let copt = ''
|
||||||
else
|
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 '
|
let copt = '--ansi '
|
||||||
endif
|
endif
|
||||||
call s:fzf({
|
call s:fzf({
|
||||||
|
|||||||
Reference in New Issue
Block a user