Fixed issue where scrollposition wasnt resetting on go to commands

This commit is contained in:
sloumdrone 2019-04-10 23:00:32 -07:00
parent 542c707e7c
commit 09dc779045
1 changed files with 3 additions and 0 deletions

View File

@ -84,6 +84,7 @@ func search(u string) error {
history.Add(sv) history.Add(sv)
quickMessage("Searching...", true) quickMessage("Searching...", true)
updateMainContent() updateMainContent()
screen.Windows[0].Scrollposition = 0
screen.ReflashScreen(true) screen.ReflashScreen(true)
return nil return nil
} }
@ -173,6 +174,7 @@ func go_to_url(u string) error {
history.Add(v) history.Add(v)
} }
updateMainContent() updateMainContent()
screen.Windows[0].Scrollposition = 0
screen.ReflashScreen(true) screen.ReflashScreen(true)
return nil return nil
} }
@ -208,6 +210,7 @@ func go_to_link(l string) error {
return fmt.Errorf("Invalid link id: %s", l) return fmt.Errorf("Invalid link id: %s", l)
} }
updateMainContent() updateMainContent()
screen.Windows[0].Scrollposition = 0
screen.ReflashScreen(true) screen.ReflashScreen(true)
return nil return nil
} }