File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3506,7 +3506,7 @@ func! s:process_rtp(rtp)
35063506  let  result =  [a: rtp [0 ]]
35073507  "  Then all other stuff (until vimruntime) 
35083508  let  i  =  0 
3509-   for  path  in  rtp [0 :-1 ]
3509+   for  path  in  rtp [0 : len ( rtp ) -1 ]
35103510    if  path  ==  s: runtime
35113511      break 
35123512    endif 
@@ -3516,7 +3516,7 @@ func! s:process_rtp(rtp)
35163516  "  Then vim-polyglot 
35173517  call  add (result, s: base )
35183518  "  Then all other files, until after-files 
3519-   for  path  in  rtp [i :-1 ]
3519+   for  path  in  rtp [i : len ( rtp ) -1 ]
35203520    if  match (path , ' [/\\]after$'  ) >  -1 
35213521      break 
35223522    endif 
@@ -3526,11 +3526,11 @@ func! s:process_rtp(rtp)
35263526  "  Then vim-polyglot after path 
35273527  call  add (result, s: base  . ' /after'  )
35283528  "  Then all other after paths 
3529-   for  path  in  rtp [i :-1 ]
3529+   for  path  in  rtp [i : len ( rtp ) -1 ]
35303530    call  add (result, path )
35313531  endfor 
35323532  "  User's after directory is always last 
3533-   call  add (result, a: rtp [-1 ])
3533+   call  add (result, a: rtp [len ( a: rtp ) -1 ])
35343534  return  result
35353535endfunc 
35363536
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments