diff options
author | Jack O'Connor <oconnor663@gmail.com> | 2017-08-28 09:32:13 -0400 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-08-28 22:32:13 +0900 |
commit | b27dc3eb1745ed29146feca94652bba0f0dd21c2 (patch) | |
tree | 2106bccdec6ab81cc86d1bdb122bb2f0e479aa33 | |
parent | e89eebb7bae2bb3f080568dff20b341ed669fd3b (diff) |
[vim] Add parens around piped source commands (#1029)
Previously a command like `echo a && echo b` would get transformed into
`echo a && echo b | fzf`, which only pipes the output of the second
command. Adding parentheses around the source command avoids this issue,
and works on both Unix and Windows.
-rw-r--r-- | plugin/fzf.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index f0cbe798..0f4fc772 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -366,7 +366,7 @@ try let source = dict.source let type = type(source) if type == 1 - let prefix = source.'|' + let prefix = '( '.source.' )|' elseif type == 3 let temps.input = s:fzf_tempname() call writefile(source, temps.input) |