From 19569bd5c5e189d9fbc87ab3655f005baf73e4d7 Mon Sep 17 00:00:00 2001 From: Junegunn Choi <junegunn.c@gmail.com> Date: Tue, 14 Feb 2017 22:28:04 +0900 Subject: [PATCH] Move cursor to the top-left when returning to alternate screen Fix broken preview border. Reported by Thomas Sattler. fzf --bind 'enter:execute(date)' --preview=date --reverse --- src/tui/light.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tui/light.go b/src/tui/light.go index 9465c49a..a53e2876 100644 --- a/src/tui/light.go +++ b/src/tui/light.go @@ -552,6 +552,9 @@ func (r *LightRenderer) Resume() bool { } func (r *LightRenderer) Clear() { + if r.fullscreen { + r.csi("H") + } // r.csi("u") r.origin() r.csi("J") -- GitLab