From 885e896b4a4752781359b1f134d2352525eed2ef Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Fri, 1 Mar 2019 17:45:47 +0300 Subject: [PATCH] check existing move operation before quit --- app.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app.go b/app.go index b30b8b6..d63dee0 100644 --- a/app.go +++ b/app.go @@ -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 {