Skip to content

Commit 7218143

Browse files
committed
Do not proceed if getcwd() returns an empty string
Close #439
1 parent c3d57ac commit 7218143

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: plug.vim

+4
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,10 @@ function! s:finish_bindings()
665665
endfunction
666666

667667
function! s:prepare(...)
668+
if empty(getcwd())
669+
throw 'Invalid current working directory. Cannot proceed.'
670+
endif
671+
668672
call s:job_abort()
669673
if s:switch_in()
670674
normal q

0 commit comments

Comments
 (0)