Skip to content
Myr

Propertly fill window with background color

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

Close #805

authored by Junegunn Choi · committed by Junegunn Choi · parent f96173c · Browse files · 2 files+9 added−0 removed
This commit

State

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

Diff stats

2 files+9 added−0 removed

  • other:+9 added−0 removed

2 files+9 added−0 removed

modified:src/tui/tui.go+4 added
173 unmodified lines
174 Header Color175 Border Color176}177178func (t *ColorTheme) HasBg() bool {179 return t.Bg != colDefault180}181182type Event struct {183 Type int184 Char rune185 MouseEvent *MouseEvent
231 unmodified lines
modified:src/terminal.go+5 added
556 unmodified lines
557 marginInt[3],558 width,559 height, false)560 }561 if !t.tui.IsOptimized() && t.theme != nil && t.theme.HasBg() {562 for i := 0; i < t.window.Height(); i++ {563 t.window.MoveAndClear(i, 0)564 }565 }566}567568func (t *Terminal) move(y int, x int, clear bool) {569 if !t.reverse {
1099 unmodified lines