mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-10 02:07:11 +00:00
Fix cursor placement of tcell renderer
This commit is contained in:
parent
d57e1f8baa
commit
fb3bf6c984
@ -3181,17 +3181,28 @@ func (t *Terminal) printAll() {
|
|||||||
func (t *Terminal) flush() {
|
func (t *Terminal) flush() {
|
||||||
t.placeCursor()
|
t.placeCursor()
|
||||||
if !t.suppress {
|
if !t.suppress {
|
||||||
windows := make([]tui.Window, 0, 4)
|
windows := make([]tui.Window, 0, 7)
|
||||||
if t.borderShape.Visible() {
|
if t.border != nil {
|
||||||
windows = append(windows, t.border)
|
windows = append(windows, t.border)
|
||||||
}
|
}
|
||||||
if t.hasPreviewWindow() {
|
|
||||||
if t.pborder != nil {
|
if t.pborder != nil {
|
||||||
windows = append(windows, t.pborder)
|
windows = append(windows, t.pborder)
|
||||||
}
|
}
|
||||||
|
if t.pwindow != nil {
|
||||||
windows = append(windows, t.pwindow)
|
windows = append(windows, t.pwindow)
|
||||||
}
|
}
|
||||||
|
if t.wborder != nil {
|
||||||
|
windows = append(windows, t.wborder)
|
||||||
|
}
|
||||||
|
if t.window != nil {
|
||||||
windows = append(windows, t.window)
|
windows = append(windows, t.window)
|
||||||
|
}
|
||||||
|
if t.inputBorder != nil {
|
||||||
|
windows = append(windows, t.inputBorder)
|
||||||
|
}
|
||||||
|
if t.inputWindow != nil {
|
||||||
|
windows = append(windows, t.inputWindow)
|
||||||
|
}
|
||||||
t.tui.RefreshWindows(windows)
|
t.tui.RefreshWindows(windows)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user