mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-01 22:00:32 +00:00
parent
87d147cf92
commit
96c7bc67c0
1 changed files with 3 additions and 0 deletions
|
|
@ -949,6 +949,9 @@ func (v *View) CommandMode() bool {
|
|||
// is the last view
|
||||
// However, since micro only supports one view for now, it doesn't really matter
|
||||
func (v *View) Quit() bool {
|
||||
if v.helpOpen {
|
||||
return v.ToggleHelp()
|
||||
}
|
||||
// Make sure not to quit if there are unsaved changes
|
||||
if views[mainView].CanClose("Quit anyway? (yes, no, save) ") {
|
||||
screen.Fini()
|
||||
|
|
|
|||
Loading…
Reference in a new issue