Skip to content
Myr

Fix cursor placement of tcell renderer

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent d57e1f8 · Browse files · 1 file+18 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+18 added−7 removed

  • other:+18 added−7 removed

1 file+18 added−7 removed

modified:src/terminal.go+18 added-7 removed
3179 unmodified lines
31803181func (t *Terminal) flush() {3182 t.placeCursor()3183 if !t.suppress {3184 windows := make([]tui.Window, 0, 4)3185 if t.borderShape.Visible() {3184 windows := make([]tui.Window, 0, 7)3185 if t.border != nil {3186 windows = append(windows, t.border)3187 }3188 if t.hasPreviewWindow() {3189 if t.pborder != nil {3190 windows = append(windows, t.pborder)3191 }3188 if t.pborder != nil {3189 windows = append(windows, t.pborder)3190 }3191 if t.pwindow != nil {3192 windows = append(windows, t.pwindow)3193 }3194 if t.wborder != nil {3195 windows = append(windows, t.wborder)3196 }3197 if t.window != nil {3194 windows = append(windows, t.window)3198 windows = append(windows, t.window)3199 }3200 if t.inputBorder != nil {3201 windows = append(windows, t.inputBorder)3202 }3203 if t.inputWindow != nil {3204 windows = append(windows, t.inputWindow)3205 }3206 t.tui.RefreshWindows(windows)3207 }3208}3209
2382 unmodified lines