From 2500aadbce033b380c07029d9b88286e2470cfae Mon Sep 17 00:00:00 2001 From: Cristiano De Michele Date: Wed, 21 Oct 2020 15:02:29 +0200 Subject: [PATCH] tentative fix of issue #425 --- 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 5d32d38f..b43fc34b 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -703,7 +703,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