Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Close https://github.com/junegunn/fzf.vim/issues/309

authored by Junegunn Choi · committed by Junegunn Choi · parent ce43ea9 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:plugin/fzf.vim+1 added-1 removed
443 unmodified lines
444 let escaped = "'".substitute(escaped, "'", "'\"'\"'", 'g')."'"445 endif446 let command = printf(fmt, escaped)447 else448 let command = escaped448 let command = a:use_height ? a:command : escaped449 endif450 if a:use_height451 let stdin = has_key(a:dict, 'source') ? '' : '< /dev/tty'452 call system(printf('tput cup %d > /dev/tty; tput cnorm > /dev/tty; %s %s 2> /dev/tty', &lines, command, stdin))
228 unmodified lines