A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/sheerun/vim-polyglot/commit/3ad297db5c1cf94660e4297ffa81b6281eab2884 below:

Fix error when editing path for shebang (#572) · sheerun/vim-polyglot@3ad297d · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+7

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+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