From ee3106ad454158323d6705bd8960ba8ead4da0a9 Mon Sep 17 00:00:00 2001 From: marty Date: Wed, 12 Dec 2007 22:23:36 +1300 Subject: [PATCH] bugfix: a bug was screwing up the removal of spaces when NERDSpaceDelims was set --- plugin/NERD_commenter.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 58fb2c7..8e7638d 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -1836,15 +1836,15 @@ function s:UncommentLineNormal(line) let line = a:line "get the comment status on the line so we know how it is commented - let lineCommentStatus = s:IsCommentedOuttermost(b:leftAlt, b:rightAlt, b:left, b:right, line) + let lineCommentStatus = s:IsCommentedOuttermost(b:left, b:right, b:leftAlt, b:rightAlt, line) "it is commented with b:left and b:right so remove these delims if lineCommentStatus == 1 - let line = s:RemoveDelimiters(b:leftAlt, b:rightAlt, line) + let line = s:RemoveDelimiters(b:left, b:right, line) "it is commented with b:leftAlt and b:rightAlt so remove these delims elseif lineCommentStatus == 2 && g:NERDRemoveAltComs - let line = s:RemoveDelimiters(b:left, b:right, line) + let line = s:RemoveDelimiters(b:leftAlt, b:rightAlt, line) "it is not properly commented with any delims so we check if it has "any random left or right delims on it and remove the outtermost ones