Skip to content
Myr

Fix test failure

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

cdcab26 removed excessive clearing of the windows. But it caused the problem where the right side of the preview window border was not cleared when hiding the preview window with the scrollbar disabled.

authored by Junegunn Choi · committed by Junegunn Choi · parent 805efc5 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:src/terminal.go+2 added-2 removed
2111 unmodified lines
2112}21132114func (t *Terminal) printBar(lineNum int, forceRedraw bool, barRange [2]int) bool {2115 hasBar := lineNum >= barRange[0] && lineNum < barRange[1]2116 if len(t.scrollbar) > 0 && (hasBar != t.prevLines[lineNum].hasBar || forceRedraw) {2116 if hasBar != t.prevLines[lineNum].hasBar || forceRedraw {2117 t.move(lineNum, t.window.Width()-1, true)2118 if hasBar {2118 if len(t.scrollbar) > 0 && hasBar {2119 t.window.CPrint(tui.ColScrollbar, t.scrollbar)2120 }2121 }2122 return hasBar
3144 unmodified lines