summaryrefslogtreecommitdiffstats
path: root/pkg/gui/diffing.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/diffing.go')
-rw-r--r--pkg/gui/diffing.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/gui/diffing.go b/pkg/gui/diffing.go
index 6e1b2bdeb..7653550de 100644
--- a/pkg/gui/diffing.go
+++ b/pkg/gui/diffing.go
@@ -112,7 +112,7 @@ func (gui *Gui) handleCreateDiffingMenuPanel() error {
name := name
menuItems = append(menuItems, []*types.MenuItem{
{
- DisplayString: fmt.Sprintf("%s %s", gui.c.Tr.LcDiff, name),
+ Label: fmt.Sprintf("%s %s", gui.c.Tr.LcDiff, name),
OnPress: func() error {
gui.State.Modes.Diffing.Ref = name
// can scope this down based on current view but too lazy right now
@@ -124,7 +124,7 @@ func (gui *Gui) handleCreateDiffingMenuPanel() error {
menuItems = append(menuItems, []*types.MenuItem{
{
- DisplayString: gui.c.Tr.LcEnterRefToDiff,
+ Label: gui.c.Tr.LcEnterRefToDiff,
OnPress: func() error {
return gui.c.Prompt(types.PromptOpts{
Title: gui.c.Tr.LcEnteRefName,
@@ -141,14 +141,14 @@ func (gui *Gui) handleCreateDiffingMenuPanel() error {
if gui.State.Modes.Diffing.Active() {
menuItems = append(menuItems, []*types.MenuItem{
{
- DisplayString: gui.c.Tr.LcSwapDiff,
+ Label: gui.c.Tr.LcSwapDiff,
OnPress: func() error {
gui.State.Modes.Diffing.Reverse = !gui.State.Modes.Diffing.Reverse
return gui.c.Refresh(types.RefreshOptions{Mode: types.ASYNC})
},
},
{
- DisplayString: gui.c.Tr.LcExitDiffMode,
+ Label: gui.c.Tr.LcExitDiffMode,
OnPress: func() error {
gui.State.Modes.Diffing = diffing.New()
return gui.c.Refresh(types.RefreshOptions{Mode: types.ASYNC})