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
1 changed files with 3 additions and 0 deletions

View File

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