From b8e359ae0f80df197ad403f812c6823659057ceb Mon Sep 17 00:00:00 2001 From: carlostobon Date: Thu, 22 Aug 2024 00:28:09 -0500 Subject: [PATCH] fix: correct logic for switching alt delimiters - Fixed a problem where toggling delimiters was not working due to copy statement. - Confirmed that toggling works correctly across different buffers. --- autoload/nerdcommenter.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/nerdcommenter.vim b/autoload/nerdcommenter.vim index 3a1e552..165bfc4 100644 --- a/autoload/nerdcommenter.vim +++ b/autoload/nerdcommenter.vim @@ -486,7 +486,7 @@ function! nerdcommenter#SetUp() abort let b:NERDSexyComMarker = '' if has_key(s:delimiterMap, filetype) - let b:NERDCommenterDelims = copy(s:delimiterMap[filetype]) + let b:NERDCommenterDelims = s:delimiterMap[filetype] for i in ['left', 'leftAlt', 'right', 'rightAlt'] if !has_key(b:NERDCommenterDelims, i) let b:NERDCommenterDelims[i] = ''