check existing move operation before quit
This commit is contained in:
parent
808404978e
commit
885e896b4a
5
app.go
5
app.go
@ -168,6 +168,11 @@ func (app *app) loop() {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if app.nav.moveTotal > 0 {
|
||||||
|
app.ui.echoerr("quit: move operation in progress")
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
log.Print("bye!")
|
log.Print("bye!")
|
||||||
|
|
||||||
if err := app.nav.writeMarks(); err != nil {
|
if err := app.nav.writeMarks(); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user