bugfix: fixed a bug that was showing up when commenting in visual mode with multipart delims of different lengths

This commit is contained in:
marty
2008-02-06 21:08:40 +13:00
parent 122490be95
commit a24534c6f1

View File

@@ -1041,7 +1041,7 @@ function s:CommentBlock(top, bottom, lSide, rSide, forceNested )
if s:Multipart()
"stick the right delimiter down
let theLine = strpart(theLine, 0, rSide+strlen(leftSpaced)) . rightSpaced . strpart(theLine, rSide+strlen(rightSpaced))
let theLine = strpart(theLine, 0, rSide+strlen(leftSpaced)) . rightSpaced . strpart(theLine, rSide+strlen(leftSpaced))
let firstLeftDelim = s:FindDelimiterIndex(b:left, theLine)
let lastRightDelim = s:LastIndexOfDelim(b:right, theLine)