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
This commit is contained in:
Junegunn Choi 2017-02-14 22:28:04 +09:00
parent afa25d8c57
commit 19569bd5c5
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -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")