Parcourir la source

g:startify_use_env: compare against absolute path

References #284.
Marco Hinz il y a 8 ans
Parent
commit
367aec0966
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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