1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-06 11:02:41 +03:00

better weight distribution in window arrangement

This commit is contained in:
Jesse Duffield
2022-04-17 09:27:17 +10:00
parent 2fa6d8037c
commit 3477cbc81f
7 changed files with 339 additions and 109 deletions

View File

@@ -858,6 +858,7 @@ func (t *tScreen) Show() {
}
func (t *tScreen) clearScreen() {
t.TPuts(t.ti.AttrOff)
fg, bg, _ := t.style.Decompose()
t.sendFgBg(fg, bg)
t.TPuts(t.ti.Clear)

View File

@@ -1053,7 +1053,7 @@ func (g *Gui) draw(v *View) error {
return nil
}
if !v.Visible || v.y1 < v.y0 {
if !v.Visible || v.y1 < v.y0 || v.x1 < v.x0 {
return nil
}