Skip to content

Commit 2357068

Browse files
committed
Drop g:fugitive_legacy_quoting
1 parent 6955915 commit 2357068

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

autoload/fugitive.vim

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1953,22 +1953,14 @@ function! s:BufName(var) abort
19531953
endif
19541954
endfunction
19551955

1956-
function! s:ExpandVarLegacy(str) abort
1957-
if get(g:, 'fugitive_legacy_quoting', 0)
1958-
return substitute(a:str, '\\\ze[%#!]', '', 'g')
1959-
else
1960-
return a:str
1961-
endif
1962-
endfunction
1963-
19641956
function! s:ExpandVar(other, var, flags, esc, ...) abort
19651957
let cwd = a:0 ? a:1 : getcwd()
19661958
if a:other =~# '^\'
19671959
return a:other[1:-1]
19681960
elseif a:other =~# '^'''
1969-
return s:ExpandVarLegacy(substitute(a:other[1:-2], "''", "'", "g"))
1961+
return substitute(a:other[1:-2], "''", "'", "g")
19701962
elseif a:other =~# '^"'
1971-
return s:ExpandVarLegacy(substitute(a:other[1:-2], '""', '"', "g"))
1963+
return substitute(a:other[1:-2], '""', '"', "g")
19721964
elseif a:other =~# '^!'
19731965
let buffer = s:BufName(len(a:other) > 1 ? '#'. a:other[1:-1] : '%')
19741966
let owner = s:Owner(buffer)

0 commit comments

Comments
 (0)