+4
-4
lines changedFilter options
+4
-4
lines changed Original file line number Diff line number Diff line change
@@ -3506,7 +3506,7 @@ func! s:process_rtp(rtp)
3506
3506
let result = [a:rtp[0]]
3507
3507
" Then all other stuff (until vimruntime)
3508
3508
let i = 0
3509
-
for path in rtp[0:-1]
3509
+
for path in rtp[0:len(rtp)-1]
3510
3510
if path == s:runtime
3511
3511
break
3512
3512
endif
@@ -3516,7 +3516,7 @@ func! s:process_rtp(rtp)
3516
3516
" Then vim-polyglot
3517
3517
call add(result, s:base)
3518
3518
" Then all other files, until after-files
3519
-
for path in rtp[i:-1]
3519
+
for path in rtp[i:len(rtp)-1]
3520
3520
if match(path, '[/\\]after$') > -1
3521
3521
break
3522
3522
endif
@@ -3526,11 +3526,11 @@ func! s:process_rtp(rtp)
3526
3526
" Then vim-polyglot after path
3527
3527
call add(result, s:base . '/after')
3528
3528
" Then all other after paths
3529
-
for path in rtp[i:-1]
3529
+
for path in rtp[i:len(rtp)-1]
3530
3530
call add(result, path)
3531
3531
endfor
3532
3532
" User's after directory is always last
3533
-
call add(result, a:rtp[-1])
3533
+
call add(result, a:rtp[len(a:rtp)-1])
3534
3534
return result
3535
3535
endfunc
3536
3536
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