From 09dc7790459365a52b25adb0401d159e173303d5 Mon Sep 17 00:00:00 2001 From: sloumdrone Date: Wed, 10 Apr 2019 23:00:32 -0700 Subject: [PATCH] Fixed issue where scrollposition wasnt resetting on go to commands --- bombadillo.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bombadillo.go b/bombadillo.go index 9b3d3ce..69a0606 100644 --- a/bombadillo.go +++ b/bombadillo.go @@ -84,6 +84,7 @@ func search(u string) error { history.Add(sv) quickMessage("Searching...", true) updateMainContent() + screen.Windows[0].Scrollposition = 0 screen.ReflashScreen(true) return nil } @@ -173,6 +174,7 @@ func go_to_url(u string) error { history.Add(v) } updateMainContent() + screen.Windows[0].Scrollposition = 0 screen.ReflashScreen(true) return nil } @@ -208,6 +210,7 @@ func go_to_link(l string) error { return fmt.Errorf("Invalid link id: %s", l) } updateMainContent() + screen.Windows[0].Scrollposition = 0 screen.ReflashScreen(true) return nil }