Fixed issue where scrollposition wasnt resetting on go to commands
This commit is contained in:
parent
542c707e7c
commit
09dc779045
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue