1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

allow stashing staged changes

reinstate old stash functionality with the 's' keybinding
This commit is contained in:
Jesse Duffield
2019-05-30 22:45:56 +10:00
parent bd2170a99c
commit 0f0fda1660
11 changed files with 199 additions and 18 deletions

View File

@ -70,7 +70,7 @@ func (gui *Gui) createMenu(title string, items interface{}, itemCount int, handl
wrappedHandlePress := func(g *gocui.Gui, v *gocui.View) error {
selectedLine := gui.State.Panels.Menu.SelectedLine
if err := handlePress(selectedLine); err != nil {
return err
return gui.createErrorPanel(gui.g, err.Error())
}
if _, err := gui.g.View("menu"); err == nil {
if _, err := gui.g.SetViewOnBottom("menu"); err != nil {