diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2017-02-14 22:28:04 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-02-14 22:28:04 +0900 |
commit | 19569bd5c5e189d9fbc87ab3655f005baf73e4d7 (patch) | |
tree | df0dbdb231e2b464ad8108e76a43911975ddc842 /src | |
parent | afa25d8c57f8ffc1ba54623360456baa9321abd7 (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
Diffstat (limited to 'src')
-rw-r--r-- | src/tui/light.go | 3 |
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") |