summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-01-30 01:08:07 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-01-30 01:08:07 +0900
commitdd156b59fc5f36a339e6bf632a72eda51b939eee (patch)
tree8168c19b47a41a3f550117158490da5e27fc8dda /src
parent36dceecd58872777d870c8bf9636bd886365f8e9 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go1
-rw-r--r--src/tui/light.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/terminal.go b/src/terminal.go
index ee678f5c..134462ec 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 90b3bae9..d5631ec9 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()
}