mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-11 19:23:47 -05:00
Fix removing space when uncommenting spaced AltDelims multipart comment (#286)
This commit is contained in:
committed by
Caleb Maclennan
parent
607253203d
commit
c5f8cbf70d
@@ -1396,7 +1396,7 @@ function s:RemoveDelimiters(left, right, line)
|
|||||||
|
|
||||||
"if the user has specified that there is a space before the right delimiter
|
"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
|
"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)
|
let line = strpart(line, 0, rightIndx-s:lenSpaceStr) . strpart(line, rightIndx)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user