Fix truncating branches to the right edge of the view when scrolled to the left

When scrolling the view to the left, the available width becomes the width of
the view plus the scroll position.
This commit is contained in:
Stefan Haller 2025-04-12 19:46:14 +02:00
parent 0236682882
commit 9e3e1a7b3a

View file

@ -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,