Skip to content

Commit

Permalink
fix: correct logic for switching alt delimiters
Browse files Browse the repository at this point in the history
- Fixed a problem where toggling delimiters was not working due to copy statement.
- Confirmed that toggling works correctly across different buffers.
  • Loading branch information
carlostobon committed Aug 22, 2024
1 parent 3f860f2 commit b8e359a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/nerdcommenter.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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] = ''
Expand Down

0 comments on commit b8e359a

Please sign in to comment.