mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-01 00:54:58 +02:00
Bump gocui
This commit is contained in:
9
vendor/github.com/jesseduffield/gocui/view.go
generated
vendored
9
vendor/github.com/jesseduffield/gocui/view.go
generated
vendored
@ -122,6 +122,10 @@ type View struct {
|
||||
// If Frame is true, Title allows to configure a title for the view.
|
||||
Title string
|
||||
|
||||
// If non-empty, TitlePrefix is prepended to the title of a view regardless on
|
||||
// the the currently selected tab (if any.)
|
||||
TitlePrefix string
|
||||
|
||||
Tabs []string
|
||||
TabIndex int
|
||||
|
||||
@ -1348,7 +1352,10 @@ func (v *View) GetClickedTabIndex(x int) int {
|
||||
return 0
|
||||
}
|
||||
|
||||
charX := 1
|
||||
charX := len(v.TitlePrefix) + 1
|
||||
if v.TitlePrefix != "" {
|
||||
charX += 1
|
||||
}
|
||||
if x <= charX {
|
||||
return -1
|
||||
}
|
||||
|
Reference in New Issue
Block a user