mirror of
https://github.com/makeworld-the-better-one/amfora.git
synced 2024-11-25 22:53:02 +03: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:
parent
ede504caaf
commit
0977cabb18
2
NOTES.md
2
NOTES.md
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user