check existing move operation before quit

This commit is contained in:
Gokcehan 2019-03-01 17:45:47 +03:00
parent 808404978e
commit 885e896b4a

5
app.go
View File

@ -168,6 +168,11 @@ func (app *app) loop() {
continue
}
if app.nav.moveTotal > 0 {
app.ui.echoerr("quit: move operation in progress")
continue
}
log.Print("bye!")
if err := app.nav.writeMarks(); err != nil {