# HG changeset patch # User Ludovic Chabant # Date 1401662002 25200 # Node ID 7fcb71064e85e2696d04315736fe55aeaeebe9c7 # Parent 08e0ab5985d2ad38f2def0bd29e19496ca871743 More path escaping! diff -r 08e0ab5985d2 -r 7fcb71064e85 plugin/lawrencium.vim --- 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(":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(":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)