Replace all modifiers in a vcs_cmd string, not just the first.
Closes #176 Signed-off-by: James McCoy <jamessan@jamessan.com>
This commit is contained in:
parent
051dc1a853
commit
ca302f7233
@ -166,12 +166,8 @@ endfunction
|
|||||||
|
|
||||||
" Function: s:replace {{{1
|
" Function: s:replace {{{1
|
||||||
function! s:replace(cmd, pat, sub)
|
function! s:replace(cmd, pat, sub)
|
||||||
let tmp = split(a:cmd, a:pat, 1)
|
let parts = split(a:cmd, a:pat, 1)
|
||||||
if len(tmp) > 1
|
return join(parts, a:sub)
|
||||||
return tmp[0] . a:sub . tmp[1]
|
|
||||||
else
|
|
||||||
return a:cmd
|
|
||||||
endif
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Function: s:strip_context {{{1
|
" Function: s:strip_context {{{1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user