diff --git a/NOTES.md b/NOTES.md index cfdca88..3011b2d 100644 --- a/NOTES.md +++ b/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 diff --git a/display/display.go b/display/display.go index 7ef2e8b..94dc733 100644 --- a/display/display.go +++ b/display/display.go @@ -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()