Permalink
Browse files

tweaks for left alignment

  • Loading branch information...
1 parent 930be32 commit 093e6b3f765b728c129a4271f1f34bb70e671f08 @ddollar committed Nov 27, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugin/NERD_commenter.vim
@@ -1051,7 +1051,7 @@ function! NERDComment(isVisual, type) range
if s:IsInSexyComment(firstLine) || s:IsCommentedFromStartOfLine(s:Left(), theLine) || s:IsCommentedFromStartOfLine(s:Left({'alt': 1}), theLine)
call s:UncommentLines(firstLine, lastLine)
else
- call s:CommentLinesToggle(forceNested, firstLine, lastLine)
+ call s:CommentLines(forceNested, "left", firstLine, lastLine)
endif
elseif a:type == 'minimal'
@@ -1469,7 +1469,7 @@ function s:AddLeftDelimAligned(delim, theLine, alignIndx)
let theLine = repeat(' ', a:alignIndx - strlen(theLine))
endif
- return strpart(theLine, 0, a:alignIndx) . a:delim . strpart(theLine, a:alignIndx)
+ return strpart(theLine, 0, a:alignIndx) . a:delim . " " . strpart(theLine, a:alignIndx)
endfunction
" Function: s:AddRightDelim(delim, theLine) {{{2

0 comments on commit 093e6b3

Please sign in to comment.