From b0d2b68144bd9de7eec5e8401e1fffa9403cc81c Mon Sep 17 00:00:00 2001 From: "Andy K. Massimino" Date: Sat, 21 Jul 2018 16:07:15 -0400 Subject: [PATCH] Use copy instead of deepcopy for delim object --- autoload/matchup/delim.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/matchup/delim.vim b/autoload/matchup/delim.vim index c123213..9f01b2e 100644 --- a/autoload/matchup/delim.vim +++ b/autoload/matchup/delim.vim @@ -79,7 +79,9 @@ function! matchup#delim#get_matching(delim, ...) " {{{1 let [l:match, l:lnum, l:cnum] = l:matches[l:i] - let l:matching = deepcopy(a:delim) + let l:matching = copy(a:delim) + let l:matching.class = copy(a:delim.class) + let l:matching.lnum = l:lnum let l:matching.cnum = l:cnum let l:matching.match = l:match