mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-12 13:33:49 -05:00
Fix error when editing path for shebang (#572)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user