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

Bump gocui

This commit is contained in:
Stefan Haller
2023-09-09 09:44:50 +02:00
parent 005827395d
commit 917eb88617
19 changed files with 266 additions and 32 deletions

View File

@ -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
}