Give up on autostart with "headless" handler

This commit is contained in:
Tim Pope 2014-04-04 02:10:13 -04:00
parent b0f9fad9ec
commit 6130d01b33

View File

@ -1465,6 +1465,9 @@ function! s:leiningen_connect(auto) abort
try try
execute cd fnameescape(b:leiningen_root) execute cd fnameescape(b:leiningen_root)
Start! -title=lein\ repl lein repl Start! -title=lein\ repl lein repl
if get(get(g:, 'dispatch_last_start', {}), 'handler', 'headless') ==# 'headless'
return
endif
finally finally
execute cd fnameescape(cwd) execute cd fnameescape(cwd)
endtry endtry