1
0
mirror of https://github.com/makew0rld/amfora.git synced 2024-12-04 14:46:29 -05:00

🐛 Stop jumping to top of page

This was a regression, the bug was not present in v1.3.0. This could be due to the cview update?
This commit is contained in:
makeworld 2020-07-28 18:14:03 -04:00
parent ede504caaf
commit 0977cabb18
2 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,7 @@
- Pressing Escape in the bottom bar jumps back to the top of the page
## Regressions
- Switching to another tab scrolls page back to the top - same with closing
## Upstream Bugs
- Wrapping messes up on brackets

View File

@ -419,6 +419,7 @@ func NewTab() {
tabs[curTab].view.Highlight("")
// Save bottomBar state
tabs[curTab].saveBottomBar()
tabs[curTab].saveScroll()
}
curTab = NumTabs()
@ -525,6 +526,7 @@ func SwitchTab(tab int) {
if curTab > -1 {
// Save bottomBar state
tabs[curTab].saveBottomBar()
tabs[curTab].saveScroll()
}
curTab = tab % NumTabs()