From dd156b59fc5f36a339e6bf632a72eda51b939eee Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 30 Jan 2017 01:08:07 +0900 Subject: [PATCH] Fix display issues with execute action - Move cursor to the top-left corner when starting a command in alternate screen - Fix cursor position when returning to alternate screen when fzf is running in full screen mode --- src/terminal.go | 1 + src/tui/light.go | 1 + 2 files changed, 2 insertions(+) diff --git a/src/terminal.go b/src/terminal.go index ee678f5..134462e 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -1141,6 +1141,7 @@ func (t *Terminal) executeCommand(template string, forcePlus bool, background bo t.tui.Pause() cmd.Run() if t.tui.Resume() { + t.tui.Clear() t.printAll() } t.refresh() diff --git a/src/tui/light.go b/src/tui/light.go index 90b3bae..d5631ec 100644 --- a/src/tui/light.go +++ b/src/tui/light.go @@ -534,6 +534,7 @@ func (r *LightRenderer) Pause() { r.rmcup() } else { r.smcup() + r.csi("H") } r.flush() }