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
This commit is contained in:
Junegunn Choi 2017-01-30 01:08:07 +09:00
parent 36dceecd58
commit dd156b59fc
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
2 changed files with 2 additions and 0 deletions

View File

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

View File

@ -534,6 +534,7 @@ func (r *LightRenderer) Pause() {
r.rmcup()
} else {
r.smcup()
r.csi("H")
}
r.flush()
}