Skip to content
Snippets Groups Projects
Unverified Commit 27208162 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

[vim] Use /dev/tty as STDIN when using --height w/o explicit source

parent 5b68027b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment