+7
-1
lines changedFilter options
+7
-1
lines changed Original file line number Diff line number Diff line change
@@ -30,7 +30,13 @@ func! s:Filetype()
30
30
31
31
let [_, l:path, l:rest; __] = l:pathrest
32
32
33
-
let l:script = split(l:path, "/")[-1]
33
+
let l:pathparts = split(l:path, "/")
34
+
35
+
if len(l:pathparts) == 0
36
+
return
37
+
endif
38
+
39
+
let l:script = l:pathparts[-1]
34
40
35
41
if l:script == "env"
36
42
let l:argspath = matchlist(l:rest, s:r_env)
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4