mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-11 23:22:41 +09:00
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user