We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20151ea commit 7dfcc81Copy full SHA for 7dfcc81
autoload/blamer.vim
@@ -92,7 +92,8 @@ function! s:GetLines() abort
92
endfunction
93
94
function! blamer#GetMessage(file, line_number, line_count) abort
95
- let l:command = 'git --no-pager blame -p -L ' . a:line_number . ',' . a:line_count . ' -- ' . a:file
+ let l:file_path_escaped = shellescape(a:file)
96
+ let l:command = 'git --no-pager blame -p -L ' . a:line_number . ',' . a:line_count . ' -- ' . l:file_path_escaped
97
let l:result = system(l:command)
98
99
let l:lines = split(l:result, '\n')
0 commit comments