Skip to content

Commit 10c4b55

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 d68c116 commit 10c4b55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pkg/gui/context/branches_context.go

+1-1
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)