summaryrefslogtreecommitdiffstats
path: root/cmd/grv/ref_view.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/grv/ref_view.go')
-rw-r--r--cmd/grv/ref_view.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd/grv/ref_view.go b/cmd/grv/ref_view.go
index 68cfa5f..7197d48 100644
--- a/cmd/grv/ref_view.go
+++ b/cmd/grv/ref_view.go
@@ -1362,8 +1362,8 @@ func showActionsForRef(refView *RefView, action Action) (err error) {
head := refView.repoData.Head()
headName := head.Shorthand()
- if StringWidth(headName) > 15 {
- headName = headName[:15] + "..."
+ if StringWidth(headName) > 12 {
+ headName = headName[:12] + "..."
}
if !isHead {
@@ -1393,7 +1393,8 @@ func showActionsForRef(refView *RefView, action Action) (err error) {
cols: 60,
},
config: ContextMenuConfig{
- Entries: contextMenuEntries,
+ ActionView: ViewRef,
+ Entries: contextMenuEntries,
OnSelect: func(entry ContextMenuEntry, entryIndex uint) {
if selectedAction, ok := entry.Value.(Action); ok {
refView.channels.DoAction(selectedAction)