changeset 89:7fcb71064e85

More path escaping!
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 01 Jun 2014 15:33:22 -0700
parents 08e0ab5985d2
children 777063310a8d
files plugin/lawrencium.vim
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugin/lawrencium.vim	Sun Jun 01 15:04:06 2014 -0700
+++ b/plugin/lawrencium.vim	Sun Jun 01 15:33:22 2014 -0700
@@ -798,7 +798,7 @@
 " Include the generated HG usage file.
 let s:usage_file = expand("<sfile>:h:h") . "/resources/hg_usage.vim"
 if filereadable(s:usage_file)
-    execute "source " . s:usage_file
+    execute "source " . fnameescape(s:usage_file)
 else
     call s:error("Can't find the Mercurial usage file. Auto-completion will be disabled in Lawrencium.")
 endif
@@ -806,7 +806,7 @@
 " Include the command file type mappings.
 let s:file_type_mappings = expand("<sfile>:h:h") . '/resources/hg_command_file_types.vim'
 if filereadable(s:file_type_mappings)
-    execute "source " . s:file_type_mappings
+    execute "source " . fnameescape(s:file_type_mappings)
 endif
 
 function! s:CompleteHg(ArgLead, CmdLine, CursorPos)