[vim] Do not escape % when using system() instead of !

Close https://github.com/junegunn/fzf.vim/issues/309
This commit is contained in:
Junegunn Choi 2017-02-17 10:20:39 +09:00
parent ce43ea9f42
commit fc274c2ba4
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -445,7 +445,7 @@ function! s:execute(dict, command, use_height, temps) abort
endif endif
let command = printf(fmt, escaped) let command = printf(fmt, escaped)
else else
let command = escaped let command = a:use_height ? a:command : escaped
endif endif
if a:use_height if a:use_height
let stdin = has_key(a:dict, 'source') ? '' : '< /dev/tty' let stdin = has_key(a:dict, 'source') ? '' : '< /dev/tty'