1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

centralise logic for information section

WIP
This commit is contained in:
Jesse Duffield
2020-05-18 22:21:36 +10:00
parent e73937c2bd
commit 1fd35f3824
3 changed files with 94 additions and 54 deletions

View File

@ -161,7 +161,7 @@ func (gui *Gui) handleInfoClick(g *gocui.Gui, v *gocui.View) error {
}
}
if cx <= len(gui.Tr.SLocalize("Donate")) {
if cx <= len(gui.Tr.SLocalize("Donate"))+len(INFO_SECTION_PADDING) {
return gui.OSCommand.OpenLink("https://github.com/sponsors/jesseduffield")
}
return nil