Escape ' characters in filepaths.

This commit is contained in:
Marco Hinz
2013-03-04 12:40:09 +01:00
parent 1ab2f4dfcc
commit e7dd1e0341

View File

@@ -70,7 +70,7 @@ function! s:exists_current_file()
endfunction
function! s:directory_of_current_file()
return expand("%:p:h")
return shellescape(expand("%:p:h"))
endfunction
function! s:command_in_directory_of_current_file(cmd)