diff --git a/plug.vim b/plug.vim index 25b26e2..4a606f0 100644 --- a/plug.vim +++ b/plug.vim @@ -665,6 +665,10 @@ function! s:finish_bindings() endfunction function! s:prepare(...) + if empty(getcwd()) + throw 'Invalid current working directory. Cannot proceed.' + endif + call s:job_abort() if s:switch_in() normal q