diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-19 19:33:59 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | f601108c5d66176ee671b2c8af2c29d0a58c3461 (patch) | |
tree | 9db1845314d1b435024c94be8e0183c716912e84 /pkg/gui/tags_panel.go | |
parent | b77abdc5e11baa4533af69a294d5883263f200df (diff) |
update naming to refer to context
Diffstat (limited to 'pkg/gui/tags_panel.go')
-rw-r--r-- | pkg/gui/tags_panel.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/tags_panel.go b/pkg/gui/tags_panel.go index eb27f916d..9d151d4d8 100644 --- a/pkg/gui/tags_panel.go +++ b/pkg/gui/tags_panel.go @@ -54,13 +54,13 @@ func (gui *Gui) refreshTags() error { gui.State.Tags = tags if gui.getBranchesView().Context == "tags" { - return gui.renderTagsWithSelection() + return gui.renderTagsContext() } return nil } -func (gui *Gui) renderTagsWithSelection() error { +func (gui *Gui) renderTagsContext() error { branchesView := gui.getBranchesView() gui.refreshSelectedLine(&gui.State.Panels.Tags.SelectedLine, len(gui.State.Tags)) @@ -145,7 +145,7 @@ func (gui *Gui) handleCreateTag(g *gocui.Gui, v *gocui.View) error { for i, tag := range gui.State.Tags { if tag.Name == tagName { gui.State.Panels.Tags.SelectedLine = i - gui.renderTagsWithSelection() + gui.renderTagsContext() return } } |