Преглед изворни кода

Prevent duplicates in v:oldfiles

References #192.
Marco Hinz пре 9 година
родитељ
комит
2eaa25ba57
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      plugin/startify.vim

+ 2 - 1
plugin/startify.vim

@@ -42,8 +42,9 @@ function! s:genesis()
       call startify#insane_in_the_membrane()
       call startify#insane_in_the_membrane()
     endif
     endif
   endif
   endif
+  call map(v:oldfiles, 'fnamemodify(v:val, ":p")')
   autocmd startify BufNewFile,BufRead,BufFilePre *
   autocmd startify BufNewFile,BufRead,BufFilePre *
-        \ call s:update_oldfiles(expand('<afile>'))
+        \ call s:update_oldfiles(expand('<afile>:p'))
   autocmd! startify VimEnter
   autocmd! startify VimEnter
 endfunction
 endfunction