Fix removing space when uncommenting spaced AltDelims multipart comment (#286)

This commit is contained in:
Alexandr 2017-02-20 09:03:41 +02:00 committed by Caleb Maclennan
parent 607253203d
commit c5f8cbf70d

View File

@ -1396,7 +1396,7 @@ function s:RemoveDelimiters(left, right, line)
"if the user has specified that there is a space before the right delimiter
"then check for the space and remove it if it is there
if delimsSpaced && strpart(line, rightIndx-s:lenSpaceStr, s:lenSpaceStr) == s:spaceStr && s:Multipart()
if delimsSpaced && strpart(line, rightIndx-s:lenSpaceStr, s:lenSpaceStr) == s:spaceStr && (s:Multipart() || s:AltMultipart())
let line = strpart(line, 0, rightIndx-s:lenSpaceStr) . strpart(line, rightIndx)
endif
endif