mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-11 03:03:47 -05:00
bugfix: fixed single line compact sexy comments
This commit is contained in:
@@ -875,6 +875,7 @@ to get illegal syntax when uncommenting them.
|
|||||||
comments arent possible with the filetypes delimiters
|
comments arent possible with the filetypes delimiters
|
||||||
- fixed some other bugs with sexy comments
|
- fixed some other bugs with sexy comments
|
||||||
- made toggle commenting slightly more robust
|
- made toggle commenting slightly more robust
|
||||||
|
- fixed a bug with single line compact sexy comments
|
||||||
|
|
||||||
2.1.12
|
2.1.12
|
||||||
- added support for patran and dakota, thx to Jacobo Diaz for the email
|
- added support for patran and dakota, thx to Jacobo Diaz for the email
|
||||||
|
|||||||
@@ -1284,12 +1284,14 @@ function s:CommentLinesSexy(topline, bottomline)
|
|||||||
call setline(a:topline, theLine)
|
call setline(a:topline, theLine)
|
||||||
|
|
||||||
"comment the bottom line
|
"comment the bottom line
|
||||||
let theLine = getline(a:bottomline)
|
if a:bottomline != a:topline
|
||||||
let lineHasTabs = s:HasLeadingTabs(theLine)
|
let theLine = getline(a:bottomline)
|
||||||
if lineHasTabs
|
let lineHasTabs = s:HasLeadingTabs(theLine)
|
||||||
let theLine = s:ConvertLeadingTabsToSpaces(theLine)
|
if lineHasTabs
|
||||||
|
let theLine = s:ConvertLeadingTabsToSpaces(theLine)
|
||||||
|
endif
|
||||||
|
let theLine = s:SwapOutterMultiPartDelimsForPlaceHolders(theLine)
|
||||||
endif
|
endif
|
||||||
let theLine = s:SwapOutterMultiPartDelimsForPlaceHolders(theLine)
|
|
||||||
let theLine = s:AddRightDelim(spaceString . right, theLine)
|
let theLine = s:AddRightDelim(spaceString . right, theLine)
|
||||||
if lineHasTabs
|
if lineHasTabs
|
||||||
let theLine = s:ConvertLeadingSpacesToTabs(theLine)
|
let theLine = s:ConvertLeadingSpacesToTabs(theLine)
|
||||||
|
|||||||
Reference in New Issue
Block a user