mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-13 04:03:46 -05:00
bugfix: fixed a bug that was showing up when commenting in visual mode with multipart delims of different lengths
This commit is contained in:
@@ -1041,7 +1041,7 @@ function s:CommentBlock(top, bottom, lSide, rSide, forceNested )
|
|||||||
|
|
||||||
if s:Multipart()
|
if s:Multipart()
|
||||||
"stick the right delimiter down
|
"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 firstLeftDelim = s:FindDelimiterIndex(b:left, theLine)
|
||||||
let lastRightDelim = s:LastIndexOfDelim(b:right, theLine)
|
let lastRightDelim = s:LastIndexOfDelim(b:right, theLine)
|
||||||
|
|||||||
Reference in New Issue
Block a user