Fix error when editing path for shebang (#572)

This commit is contained in:
Chayoung You
2020-09-30 18:20:29 +09:00
committed by GitHub
parent 5d7121d829
commit 3ad297db5c

View File

@@ -30,7 +30,13 @@ func! s:Filetype()
let [_, l:path, l:rest; __] = l:pathrest
let l:script = split(l:path, "/")[-1]
let l:pathparts = split(l:path, "/")
if len(l:pathparts) == 0
return
endif
let l:script = l:pathparts[-1]
if l:script == "env"
let l:argspath = matchlist(l:rest, s:r_env)