Mercurial > vim-lawrencium
changeset 88:08e0ab5985d2
Correctly escape paths on Windows.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 01 Jun 2014 15:04:06 -0700 |
parents | e688b658ce5b |
children | 7fcb71064e85 |
files | plugin/lawrencium.vim |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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