diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index a2cb700..0886b45 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2982,7 +2982,11 @@ function! fugitive#cfile() abort let pre = '' let results = s:cfile() if empty(results) - return expand('') + let cfile = expand('') + if &includeexpr =~# '\' + sandbox let cfile = eval(substitute(&includeexpr, '\C\', '\=string(cfile)', 'g')) + endif + return cfile elseif len(results) > 1 let pre = '+' . join(map(results[1:-1], 'escape(v:val, " ")'), '\|') . ' ' endif