mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-15 01:34:26 +02:00
restore donate link
This commit is contained in:
@ -147,12 +147,11 @@ func (gui *Gui) handleInfoClick(g *gocui.Gui, v *gocui.View) error {
|
|||||||
cx, _ := v.Cursor()
|
cx, _ := v.Cursor()
|
||||||
width, _ := v.Size()
|
width, _ := v.Size()
|
||||||
|
|
||||||
|
for _, mode := range gui.modeStatuses() {
|
||||||
|
if mode.isActive() {
|
||||||
if width-cx > len(gui.Tr.SLocalize("(reset)")) {
|
if width-cx > len(gui.Tr.SLocalize("(reset)")) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, mode := range gui.modeStatuses() {
|
|
||||||
if mode.isActive() {
|
|
||||||
return mode.reset()
|
return mode.reset()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user