summaryrefslogtreecommitdiff
path: root/runtime/macros/matchit.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/macros/matchit.vim')
-rw-r--r--runtime/macros/matchit.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/macros/matchit.vim b/runtime/macros/matchit.vim
index e41cda9e1..549c26cf3 100644
--- a/runtime/macros/matchit.vim
+++ b/runtime/macros/matchit.vim
@@ -357,7 +357,7 @@ fun! s:InsertRefs(groupBR, prefix, group, suffix, matchline)
execute s:Ref(ini, d, "start", "len")
let ini = strpart(ini, 0, start) . backref . strpart(ini, start+len)
let tailBR = substitute(tailBR, s:notslash . '\zs\\' . d,
- \ escape(backref, '\\'), 'g')
+ \ escape(backref, '\\&'), 'g')
endif
let d = d-1
endwhile