1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-28 16:02:01 +03:00

Bump gocui

This commit is contained in:
Stefan Haller
2024-08-24 10:35:59 +02:00
parent 61ae5e16ae
commit 250eb14de1
7 changed files with 98 additions and 46 deletions

View File

@ -378,6 +378,7 @@ type viewLine struct {
type cell struct {
chr rune
bgColor, fgColor Attribute
hyperlink string
}
type lineType []cell
@ -851,9 +852,10 @@ func (v *View) parseInput(ch rune, x int, _ int) (bool, []cell) {
repeatCount = tabStop - (x % tabStop)
}
c := cell{
fgColor: v.ei.curFgColor,
bgColor: v.ei.curBgColor,
chr: ch,
fgColor: v.ei.curFgColor,
bgColor: v.ei.curBgColor,
hyperlink: v.ei.hyperlink,
chr: ch,
}
for i := 0; i < repeatCount; i++ {
cells = append(cells, c)
@ -1188,6 +1190,9 @@ func (v *View) draw() error {
if bgColor == ColorDefault {
bgColor = v.BgColor
}
if c.hyperlink != "" {
fgColor |= AttrUnderline
}
if err := v.setRune(x, y, c.chr, fgColor, bgColor); err != nil {
return err