Skip to content

Commit 9e3e1a7

Browse files
committed
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.
1 parent 0236682 commit 9e3e1a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/gui/context/branches_context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func NewBranchesContext(c *ContextCommon) *BranchesContext {
3030
c.State().GetItemOperation,
3131
c.State().GetRepoState().GetScreenMode() != types.SCREEN_NORMAL,
3232
c.Modes().Diffing.Ref,
33-
c.Views().Branches.InnerWidth(),
33+
c.Views().Branches.InnerWidth()+c.Views().Branches.OriginX(),
3434
c.Tr,
3535
c.UserConfig(),
3636
c.Model().Worktrees,

0 commit comments

Comments
 (0)