# HG changeset patch # User Ludovic Chabant # Date 1401660246 25200 # Node ID 08e0ab5985d2ad38f2def0bd29e19496ca871743 # Parent e688b658ce5bd1db8c777f5743409be775aee7e1 Correctly escape paths on Windows. diff -r e688b658ce5b -r 08e0ab5985d2 plugin/lawrencium.vim --- a/plugin/lawrencium.vim Wed Apr 23 21:43:34 2014 -0700 +++ b/plugin/lawrencium.vim Sun Jun 01 15:04:06 2014 -0700 @@ -371,7 +371,7 @@ if a:0 == 0 || !a:1 let l:path = self.GetRelativePath(a:path) endif - let l:path = escape(l:path, ' \') + let l:path = fnameescape(l:path) let l:result = 'lawrencium://' . s:stripslash(self.root_dir) . '//' . l:path if a:action !=? '' let l:result = l:result . '//' . a:action