Skip to content

Commit 9dd1f09

Browse files
committed
Version 3.7 (Dec 22, 2013)
1 parent d3da4b4 commit 9dd1f09

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

plugin/mru.vim

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
" File: mru.vim
22
" Author: Yegappan Lakshmanan (yegappan AT yahoo DOT com)
3-
" Version: 3.6
3+
" Version: 3.7
44
" Last Modified: December 22, 2013
55
" Copyright: Copyright (C) 2003-2013 Yegappan Lakshmanan
6-
" Permission is hereby granted to use and distribute this code,
6+
" License: Permission is hereby granted to use and distribute this code,
77
" with or without modifications, provided that this copyright
88
" notice is copied with it. Like anything else that's free,
99
" mru.vim is provided *as is* and comes with no warranty of any
@@ -423,7 +423,11 @@ endfunction
423423
" that should be escaped (for security reasons)
424424
let s:esc_filename_chars = ' *?[{`$%#"|!<>();&' . "'\t\n"
425425
function! s:MRU_escape_filename(fname)
426-
return escape(a:fname, s:esc_filename_chars)
426+
if exists("*fnameescape")
427+
return fnameescape(a:fname)
428+
else
429+
return escape(a:fname, s:esc_filename_chars)
430+
endif
427431
endfunction
428432

429433
" MRU_Edit_File {{{1

0 commit comments

Comments
 (0)