summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-02-14 22:28:04 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-02-14 22:28:04 +0900
commit19569bd5c5e189d9fbc87ab3655f005baf73e4d7 (patch)
treedf0dbdb231e2b464ad8108e76a43911975ddc842
parentafa25d8c57f8ffc1ba54623360456baa9321abd7 (diff)
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
-rw-r--r--src/tui/light.go3
1 files changed, 3 insertions, 0 deletions
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")