comparison plugin/lawrencium.vim @ 112:b051b81cc365

Fix double escaping when Lawrencium is stored in a folder with spaces. Kudos to Gareth Phillips for pointing out the solution :)
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 10 Dec 2014 21:50:48 -0800
parents 01edb7c58e0c
children 8718e6dbea1e
comparison
equal deleted inserted replaced
111:01edb7c58e0c 112:b051b81cc365
695 function! s:read_lawrencium_log(repo, path_parts, full_path) abort 695 function! s:read_lawrencium_log(repo, path_parts, full_path) abort
696 let l:log_opts = join(split(a:path_parts['value'], ',')) 696 let l:log_opts = join(split(a:path_parts['value'], ','))
697 let l:log_cmd = "log " . l:log_opts 697 let l:log_cmd = "log " . l:log_opts
698 698
699 if a:path_parts['path'] == '' 699 if a:path_parts['path'] == ''
700 call a:repo.ReadCommandOutput(l:log_cmd, '--style', shellescape(s:log_style_file)) 700 call a:repo.ReadCommandOutput(l:log_cmd, '--style', s:log_style_file)
701 else 701 else
702 call a:repo.ReadCommandOutput(l:log_cmd, '--style', shellescape(s:log_style_file), a:full_path) 702 call a:repo.ReadCommandOutput(l:log_cmd, '--style', s:log_style_file, a:full_path)
703 endif 703 endif
704 setlocal filetype=hglog 704 setlocal filetype=hglog
705 endfunction 705 endfunction
706 706
707 " Diff revisions (`hg diff`) 707 " Diff revisions (`hg diff`)