1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-27 12:32:37 +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

4
Gopkg.lock generated
View File

@ -197,11 +197,11 @@
[[projects]]
branch = "master"
digest = "1:831819e8726b6b19e90079bce76d3048e2be3595359ee912d63d560e0db89b97"
digest = "1:198f2036bd458e6587db5143be8cbda46c3c59937320f62219c77b93c99bb1f1"
name = "github.com/jesseduffield/gocui"
packages = ["."]
pruneopts = "NUT"
revision = "f0f0ab442e6c8e42650a7e38a45122bba2e11f3f"
revision = "1b91467ea2d44e4036e493f6ba47710beba18955"
[[projects]]
branch = "master"

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 {