diff options
author | mjarkk <mkopenga@gmail.com> | 2018-10-20 17:37:55 +0200 |
---|---|---|
committer | mjarkk <mkopenga@gmail.com> | 2018-10-20 17:37:55 +0200 |
commit | 12425f0aa760759d916ef16bbd028b2c2de5577b (patch) | |
tree | 882223eb8ea4a251a7084597e71743f649da656c /pkg/gui/view_helpers.go | |
parent | 727ba9f42ec0678a7da7124f8befc81550361019 (diff) |
First good success
Diffstat (limited to 'pkg/gui/view_helpers.go')
-rw-r--r-- | pkg/gui/view_helpers.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go index 6c3e5505c..a5414448f 100644 --- a/pkg/gui/view_helpers.go +++ b/pkg/gui/view_helpers.go @@ -94,6 +94,8 @@ func (gui *Gui) newLineFocused(g *gocui.Gui, v *gocui.View) error { return nil case "commitMessage": return gui.handleCommitFocused(g, v) + case "pushPassUname": + return gui.handlePushFocused(g, v) case "main": // TODO: pull this out into a 'view focused' function gui.refreshMergePanel(g) @@ -288,6 +290,11 @@ func (gui *Gui) getCommitMessageView(g *gocui.Gui) *gocui.View { return v } +func (gui *Gui) getPushPassUnameView(g *gocui.Gui) *gocui.View { + v, _ := g.View("pushPassUname") + return v +} + func (gui *Gui) getBranchesView(g *gocui.Gui) *gocui.View { v, _ := g.View("branches") return v @@ -304,7 +311,7 @@ func (gui *Gui) currentViewName(g *gocui.Gui) string { func (gui *Gui) resizeCurrentPopupPanel(g *gocui.Gui) error { v := g.CurrentView() - if v.Name() == "commitMessage" || v.Name() == "confirmation" { + if v.Name() == "commitMessage" || v.Name() == "pushPassUname" || v.Name() == "confirmation" { return gui.resizePopupPanel(g, v) } return nil |