mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-17 00:18:05 +02:00
bump gocui fork to convert tabs to spaces
This commit is contained in:
4
Gopkg.lock
generated
4
Gopkg.lock
generated
@ -189,11 +189,11 @@
|
|||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
digest = "1:66bb9b4a5abb704642fccba52a84a7f7feef2d9623f87b700e52a6695044723f"
|
digest = "1:68858ed02f6da4576787f8198290466438b76d287537c7654b56dc10409c0b71"
|
||||||
name = "github.com/jesseduffield/gocui"
|
name = "github.com/jesseduffield/gocui"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
pruneopts = "NUT"
|
pruneopts = "NUT"
|
||||||
revision = "03e26ff3f1de2c1bc2205113c3aba661312eee00"
|
revision = "fe55a32c8a4c7cf94b04a6507eae7ece48c2f975"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
8
vendor/github.com/jesseduffield/gocui/view.go
generated
vendored
8
vendor/github.com/jesseduffield/gocui/view.go
generated
vendored
@ -148,7 +148,6 @@ func (v *View) setRune(x, y int, ch rune, fgColor, bgColor Attribute) error {
|
|||||||
if x < 0 || x >= maxX || y < 0 || y >= maxY {
|
if x < 0 || x >= maxX || y < 0 || y >= maxY {
|
||||||
return errors.New("invalid point")
|
return errors.New("invalid point")
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
ry, rcy int
|
ry, rcy int
|
||||||
err error
|
err error
|
||||||
@ -270,6 +269,12 @@ func (v *View) parseInput(ch rune) []cell {
|
|||||||
if isEscape {
|
if isEscape {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
repeatCount := 1
|
||||||
|
if ch == '\t' {
|
||||||
|
ch = ' '
|
||||||
|
repeatCount = 4
|
||||||
|
}
|
||||||
|
for i := 0; i < repeatCount; i++ {
|
||||||
c := cell{
|
c := cell{
|
||||||
fgColor: v.ei.curFgColor,
|
fgColor: v.ei.curFgColor,
|
||||||
bgColor: v.ei.curBgColor,
|
bgColor: v.ei.curBgColor,
|
||||||
@ -277,6 +282,7 @@ func (v *View) parseInput(ch rune) []cell {
|
|||||||
}
|
}
|
||||||
cells = append(cells, c)
|
cells = append(cells, c)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return cells
|
return cells
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user