1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-23 00:39:13 +02:00

Bump gocui

This commit is contained in:
Stefan Haller
2024-08-01 11:59:53 +02:00
parent 8bcfa3660a
commit 07dd8a2b07
4 changed files with 16 additions and 9 deletions

View File

@ -751,13 +751,20 @@ func (g *Gui) MainLoop() error {
}
}()
if g.Mouse {
Screen.EnableMouse()
}
Screen.EnableFocus()
previousEnableMouse := false
for {
if g.Mouse != previousEnableMouse {
if g.Mouse {
Screen.EnableMouse()
} else {
Screen.DisableMouse()
}
previousEnableMouse = g.Mouse
}
err := g.processEvent()
if err != nil {
return err
@ -1084,7 +1091,7 @@ func (g *Gui) drawTitle(v *View, fgColor, bgColor Attribute) error {
if i >= currentTabStart && i <= currentTabEnd {
currentFgColor = v.SelFgColor
if v != g.currentView {
currentFgColor -= AttrBold
currentFgColor &= ^AttrBold
}
}
if err := g.SetRune(x, v.y0, ch, currentFgColor, currentBgColor); err != nil {