From f02686f2f60fd9cfb18976f12d791c2663cf17c8 Mon Sep 17 00:00:00 2001 From: Cristiano De Michele Date: Thu, 3 Dec 2020 10:33:37 +0100 Subject: [PATCH] Fix alternative delimiter issue #425 (#440) Co-authored-by: Cristiano De Michele --- plugin/NERD_commenter.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index eeec642..b3060bb 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -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