mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-05 00:59:19 +02:00
whoops
This commit is contained in:
@ -113,7 +113,7 @@ func (gui *Gui) handleResetSelection(g *gocui.Gui, v *gocui.View) error {
|
|||||||
return gui.applySelection(true)
|
return gui.applySelection(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
if gui.Config.GetUserConfig().GetBool("gui.skipUnstageLineWarning") {
|
if !gui.Config.GetUserConfig().GetBool("gui.skipUnstageLineWarning") {
|
||||||
return gui.createConfirmationPanel(gui.g, gui.getMainView(), false, "unstage lines", "Are you sure you want to delete the selected lines (git reset)? It is irreversible.\nTo disable this dialogue set the config key of 'gui.skipUnstageLineWarning' to true", func(*gocui.Gui, *gocui.View) error {
|
return gui.createConfirmationPanel(gui.g, gui.getMainView(), false, "unstage lines", "Are you sure you want to delete the selected lines (git reset)? It is irreversible.\nTo disable this dialogue set the config key of 'gui.skipUnstageLineWarning' to true", func(*gocui.Gui, *gocui.View) error {
|
||||||
return gui.applySelection(true)
|
return gui.applySelection(true)
|
||||||
}, nil)
|
}, nil)
|
||||||
|
Reference in New Issue
Block a user