Skip to content

Commit

Permalink
Fix alternative delimiter issue #425 (#440)
Browse files Browse the repository at this point in the history
Co-authored-by: Cristiano De Michele <[email protected]>
  • Loading branch information
cridemichel and Cristiano De Michele authored Dec 3, 2020
1 parent 3441a98 commit f02686f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/NERD_commenter.vim
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ function s:CommentBlock(top, bottom, lSide, rSide, forceNested )
"alternative delimiters (if THEY are) as the comment will be better and more
"accurate with multipart delimiters
let switchedDelims = 0
if !s:Multipart() && g:NERDAllowAnyVisualDelims && s:AltMultipart()
if !s:Multipart() && !g:NERDAllowAnyVisualDelims && s:AltMultipart()
let switchedDelims = 1
call s:SwitchToAlternativeDelimiters(0)
endif
Expand Down

0 comments on commit f02686f

Please sign in to comment.