diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-01-03 19:56:07 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-01-03 19:56:07 +0900 |
| commit | fb3bf6c9841d849ec459fc6b251b4aa0f16d8038 (patch) | |
| tree | 9fb2d95bbc3d28d0786d7ccc0fc2bc7425143538 | |
| parent | d57e1f8baae3680901b48eb4b421de4a7aa95cfc (diff) | |
| download | fzf-fb3bf6c9841d849ec459fc6b251b4aa0f16d8038.tar.gz | |
Fix cursor placement of tcell renderer
| -rw-r--r-- | src/terminal.go | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/src/terminal.go b/src/terminal.go index b05c38b0..fd5efa28 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -3181,17 +3181,28 @@ func (t *Terminal) printAll() { func (t *Terminal) flush() { t.placeCursor() if !t.suppress { - windows := make([]tui.Window, 0, 4) - if t.borderShape.Visible() { + windows := make([]tui.Window, 0, 7) + if t.border != nil { windows = append(windows, t.border) } - if t.hasPreviewWindow() { - if t.pborder != nil { - windows = append(windows, t.pborder) - } + if t.pborder != nil { + windows = append(windows, t.pborder) + } + if t.pwindow != nil { windows = append(windows, t.pwindow) } - windows = append(windows, t.window) + if t.wborder != nil { + windows = append(windows, t.wborder) + } + if t.window != nil { + 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) } } |
