From 3921bc13a3b17b02ba3b3f8f5d7a189841ed11b4 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Mon, 3 Jun 2019 08:21:39 +0200 Subject: [PATCH] async: do not clean up job dir for running jobs closed #1929 --- autoload/airline/async.vim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/autoload/airline/async.vim b/autoload/airline/async.vim index 5732077..5365e85 100644 --- a/autoload/airline/async.vim +++ b/autoload/airline/async.vim @@ -185,7 +185,10 @@ if v:version >= 800 && has("job") if job_status(get(jobs, a:file)) == 'run' return elseif has_key(jobs, a:file) - call remove(jobs, a:file) + " still running + return + " jobs dict should be cleaned on exit, so not needed here + " call remove(jobs, a:file) endif endif let id = job_start(cmd, { @@ -312,7 +315,10 @@ elseif has("nvim") let s:clean_jobs[a:vcs] = {} endif if has_key(s:clean_jobs[a:vcs], a:file) - call remove(s:clean_jobs[a:vcs], a:file) + " still running + return + " jobs dict should be cleaned on exit, so not needed here + " call remove(s:clean_jobs[a:vcs], a:file) endif let id = jobstart(cmd, config) call s:set_clean_jobs_variable(a:vcs, a:file, id)