diff --git a/pkg/gui/context/branches_context.go b/pkg/gui/context/branches_context.go index faff68ba9ce..9e30e36ccd7 100644 --- a/pkg/gui/context/branches_context.go +++ b/pkg/gui/context/branches_context.go @@ -30,7 +30,7 @@ func NewBranchesContext(c *ContextCommon) *BranchesContext { c.State().GetItemOperation, c.State().GetRepoState().GetScreenMode() != types.SCREEN_NORMAL, c.Modes().Diffing.Ref, - c.Views().Branches.InnerWidth(), + c.Views().Branches.InnerWidth()+c.Views().Branches.OriginX(), c.Tr, c.UserConfig(), c.Model().Worktrees, diff --git a/pkg/gui/controllers/list_controller.go b/pkg/gui/controllers/list_controller.go index c7a589af404..42f15d89572 100644 --- a/pkg/gui/controllers/list_controller.go +++ b/pkg/gui/controllers/list_controller.go @@ -74,6 +74,9 @@ func (self *ListController) scrollHorizontal(scrollFunc func()) error { scrollFunc() self.context.HandleFocus(types.OnFocusOpts{}) + if self.context.NeedsRerenderOnWidthChange() == types.NEEDS_RERENDER_ON_WIDTH_CHANGE_WHEN_WIDTH_CHANGES { + self.context.HandleRender() + } return nil }