Permalink
Browse files

Use `substitute` instead of `fnamemodify`.

Thanks, tomtom.
  • Loading branch information...
1 parent ffdef54 commit 64e54e557f0fbc1db5405b61b4f1c408793df8ec @blueyed blueyed committed Mar 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugin/tmru.vim
View
@@ -128,9 +128,9 @@ function! s:MruRetrieve()
" Canonicalize filename when using &shellslash (Windows)
if exists('+shellslash')
if &shellslash
- let r = map(r, 'fnamemodify(v:val, ":gs?\\?/?")')
+ let r = map(r, 'substitute(v:val, "\\", "/", "g")')
else
- let r = map(r, 'fnamemodify(v:val, ":gs?/?\\?")')
+ let r = map(r, 'substitute(v:val, "/", "\\", "g")')
endif
endif

0 comments on commit 64e54e5

Please sign in to comment.