1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-17 00:18:05 +02:00

bump gocui to fix invalid point crashing issue

This commit is contained in:
Jesse Duffield
2019-04-10 09:58:28 +10:00
parent 0f1abcb10c
commit 3e779bca8d
2 changed files with 5 additions and 2 deletions

View File

@ -610,6 +610,9 @@ func (g *Gui) drawSubtitle(v *View, fgColor, bgColor Attribute) error {
}
start := v.x1 - 5 - len(v.Subtitle)
if start < v.x0 {
return nil
}
for i, ch := range v.Subtitle {
x := start + i
if x >= v.x1 {