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)
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
}