Explorar o código

g:startify_use_env: compare against absolute path

References #284.
Marco Hinz %!s(int64=8) %!d(string=hai) anos
pai
achega
367aec0966
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      autoload/startify.vim

+ 1 - 1
autoload/startify.vim

@@ -514,7 +514,7 @@ function! s:filter_oldfiles(path_prefix, path_format, use_env) abort
     call s:init_env()
     for i in range(len(oldfiles))
       for [k,v] in s:env
-        let p = oldfiles[i][1]
+        let p = oldfiles[i][0]
         if !stridx(tolower(p), tolower(v))
           let oldfiles[i][1] = printf('$%s%s', k, p[len(v):])
           break