mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-02-27 16:29:38 +08:00
Fix removing space when uncommenting spaced AltDelims multipart comment (#286)
This commit is contained in:
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
|
||||
"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
|
||||
|
Loading…
x
Reference in New Issue
Block a user