summaryrefslogtreecommitdiffstats
path: root/pkg/gui/global_handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/global_handlers.go')
-rw-r--r--pkg/gui/global_handlers.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/pkg/gui/global_handlers.go b/pkg/gui/global_handlers.go
index eee09a546..6e098fb6c 100644
--- a/pkg/gui/global_handlers.go
+++ b/pkg/gui/global_handlers.go
@@ -187,32 +187,6 @@ func (gui *Gui) handleMouseDownSecondary() error {
return nil
}
-func (gui *Gui) handleInfoClick() error {
- if !gui.g.Mouse {
- return nil
- }
-
- view := gui.Views.Information
-
- cx, _ := view.Cursor()
- width, _ := view.Size()
-
- for _, mode := range gui.modeStatuses() {
- if mode.isActive() {
- if width-cx > len(gui.Tr.ResetInParentheses) {
- return nil
- }
- return mode.reset()
- }
- }
-
- // if we're not in an active mode we show the donate button
- if cx <= len(gui.Tr.Donate)+len(INFO_SECTION_PADDING) {
- return gui.OSCommand.OpenLink("https://github.com/sponsors/jesseduffield")
- }
- return nil
-}
-
func (gui *Gui) fetch(canPromptForCredentials bool, span string) (err error) {
gui.Mutexes.FetchMutex.Lock()
defer gui.Mutexes.FetchMutex.Unlock()