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:
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
|
- Pressing Escape in the bottom bar jumps back to the top of the page
|
||||||
|
|
||||||
## Regressions
|
## Regressions
|
||||||
- Switching to another tab scrolls page back to the top - same with closing
|
|
||||||
|
|
||||||
## Upstream Bugs
|
## Upstream Bugs
|
||||||
- Wrapping messes up on brackets
|
- Wrapping messes up on brackets
|
||||||
|
@ -419,6 +419,7 @@ func NewTab() {
|
|||||||
tabs[curTab].view.Highlight("")
|
tabs[curTab].view.Highlight("")
|
||||||
// Save bottomBar state
|
// Save bottomBar state
|
||||||
tabs[curTab].saveBottomBar()
|
tabs[curTab].saveBottomBar()
|
||||||
|
tabs[curTab].saveScroll()
|
||||||
}
|
}
|
||||||
|
|
||||||
curTab = NumTabs()
|
curTab = NumTabs()
|
||||||
@ -525,6 +526,7 @@ func SwitchTab(tab int) {
|
|||||||
if curTab > -1 {
|
if curTab > -1 {
|
||||||
// Save bottomBar state
|
// Save bottomBar state
|
||||||
tabs[curTab].saveBottomBar()
|
tabs[curTab].saveBottomBar()
|
||||||
|
tabs[curTab].saveScroll()
|
||||||
}
|
}
|
||||||
|
|
||||||
curTab = tab % NumTabs()
|
curTab = tab % NumTabs()
|
||||||
|
Loading…
Reference in New Issue
Block a user