1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-12 11:15:00 +02:00

no need to set views on top anymore

This commit is contained in:
Jesse Duffield 2020-08-17 20:45:37 +10:00
parent 08e039bea9
commit dc183c0d82
3 changed files with 2 additions and 12 deletions

View File

@ -57,10 +57,6 @@ func (gui *Gui) handleCommitClose(g *gocui.Gui, v *gocui.View) error {
}
func (gui *Gui) handleCommitMessageFocused() error {
if _, err := gui.g.SetViewOnTop("commitMessage"); err != nil {
return err
}
message := gui.Tr.TemplateLocalize(
"CommitMessageConfirm",
Teml{

View File

@ -155,8 +155,6 @@ func (gui *Gui) activateContext(c Context) error {
return err
}
// return gui.newLineFocused(newView)
if err := c.HandleFocus(); err != nil {
return err
}

View File

@ -58,15 +58,11 @@ func (gui *Gui) handleCloseCredentialsView(g *gocui.Gui, v *gocui.View) error {
}
func (gui *Gui) handleCredentialsViewFocused() error {
if _, err := gui.g.SetViewOnTop("credentials"); err != nil {
return err
}
message := gui.Tr.TemplateLocalize(
"CloseConfirm",
Teml{
"keyBindClose": "esc",
"keyBindConfirm": "enter",
"keyBindClose": gui.getKeyDisplay("universal.return"),
"keyBindConfirm": gui.getKeyDisplay("universal.confirm"),
},
)
gui.renderString("options", message)