summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-01-22 03:03:26 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-01-22 03:03:26 +0900
commitfa7c8977a85b08eee660f42f8bf52628166e422f (patch)
tree21f158f03ed9b83a251faaf6f563e1dde8d46abd
parenta06ccc928f46e9c095680bc67b9f65c61f323e23 (diff)
[vim] tput el to clear the last line
Close #814 Not grouping commands to avoid errors on non-standard shells.
-rw-r--r--plugin/fzf.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 4064a559..8778c785 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -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