Skip to content

Commit c0e9a30

Browse files
committed
Support 7.4.52
1 parent ebc1690 commit c0e9a30

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plug.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1998,7 +1998,9 @@ endfunction
19981998

19991999
function! plug#shellescape(arg, ...)
20002000
let opts = get(a:000, 0, {})
2001-
let opts = type(opts) == s:TYPE.dict ? opts : {}
2001+
if type(opts) != s:TYPE.dict
2002+
let opts = {}
2003+
endif
20022004
let shell = get(opts, 'shell', s:is_win ? 'cmd.exe' : 'sh')
20032005
let script = get(opts, 'script', 1)
20042006
if shell =~# 'cmd\.exe$'

0 commit comments

Comments
 (0)