瀏覽代碼

g:startify_use_env: compare against absolute path

References #284.
Marco Hinz 8 年之前
父節點
當前提交
367aec0966
共有 1 個文件被更改,包括 1 次插入1 次删除
  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