From 9e3e1a7b3a4b084677018b9a39219d342b1c1a4e Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sat, 12 Apr 2025 19:46:14 +0200 Subject: [PATCH] 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. --- pkg/gui/context/branches_context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/gui/context/branches_context.go b/pkg/gui/context/branches_context.go index faff68ba9..9e30e36cc 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,