From 2720816266013793da99f75df4ab90fb3f4013c2 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 15 Jan 2017 04:32:39 +0900 Subject: [vim] Use /dev/tty as STDIN when using --height w/o explicit source --- plugin/fzf.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugin') diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 9c9c6db0..d1a81fc5 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -428,7 +428,8 @@ function! s:execute(dict, command, use_height, temps) abort let command = escaped endif if a:use_height - call system(printf('tput cup %d > /dev/tty; tput cnorm > /dev/tty; %s 2> /dev/tty', &lines, command)) + let stdin = has_key(a:dict, 'source') ? '' : '< /dev/tty' + call system(printf('tput cup %d > /dev/tty; tput cnorm > /dev/tty; %s %s 2> /dev/tty', &lines, command, stdin)) else execute 'silent !'.command endif -- cgit v1.2.3