[vim] tput el to clear the last line

Close #814

Not grouping commands to avoid errors on non-standard shells.
This commit is contained in:
Junegunn Choi 2017-01-22 03:03:26 +09:00
parent a06ccc928f
commit fa7c8977a8
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -430,7 +430,7 @@ function! s:execute(dict, command, use_height, temps) abort
endif
if a:use_height
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))
call system(printf('tput cup %d > /dev/tty; tput cnorm > /dev/tty; tput el > /dev/tty; %s %s 2> /dev/tty', &lines, command, stdin))
else
execute 'silent !'.command
endif