mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-11 19:23:47 -05:00
bugfix: remove extra spaces (if options permit) when uncommenting irregular comments
This commit is contained in:
@@ -869,6 +869,8 @@ to get illegal syntax when uncommenting them.
|
|||||||
- added support for services and gitcommit, thx to Christophe Benz for the
|
- added support for services and gitcommit, thx to Christophe Benz for the
|
||||||
email
|
email
|
||||||
- set the NERDRemoveExtraSpaces option to 1 by default as the doc states
|
- set the NERDRemoveExtraSpaces option to 1 by default as the doc states
|
||||||
|
- fixed a bug where extra spaces werent being removed sometimes, thx to
|
||||||
|
Zhang Shuhan for the report
|
||||||
|
|
||||||
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
|
||||||
@@ -1181,6 +1183,9 @@ Thanks to Ingo Karkat for the bug reports and the bugfix patch.
|
|||||||
Not to forget! Thanks to the following people for sending me new filetypes to
|
Not to forget! Thanks to the following people for sending me new filetypes to
|
||||||
support :D
|
support :D
|
||||||
|
|
||||||
|
Thanks to Zhang Shuhan for noticing (and sending me the bug report) that
|
||||||
|
spaces werent being removed properly for some comments.
|
||||||
|
|
||||||
The hackers The filetypes~
|
The hackers The filetypes~
|
||||||
Sam R verilog
|
Sam R verilog
|
||||||
Jonathan Derque context, plaintext and mail
|
Jonathan Derque context, plaintext and mail
|
||||||
|
|||||||
@@ -1911,16 +1911,16 @@ function s:UncommentLineNormal(line)
|
|||||||
|
|
||||||
"remove the outter most left comment delim
|
"remove the outter most left comment delim
|
||||||
if indxLeft != -1 && (indxLeft < indxLeftAlt || indxLeftAlt == -1)
|
if indxLeft != -1 && (indxLeft < indxLeftAlt || indxLeftAlt == -1)
|
||||||
let line = s:ReplaceLeftMostDelim(b:left, '', line)
|
let line = s:RemoveDelimiters(b:left, '', line)
|
||||||
elseif indxLeftAlt != -1
|
elseif indxLeftAlt != -1
|
||||||
let line = s:ReplaceLeftMostDelim(b:leftAlt, '', line)
|
let line = s:RemoveDelimiters(b:leftAlt, '', line)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
"remove the outter most right comment delim
|
"remove the outter most right comment delim
|
||||||
if indxRight != -1 && (indxRight < indxRightAlt || indxRightAlt == -1)
|
if indxRight != -1 && (indxRight < indxRightAlt || indxRightAlt == -1)
|
||||||
let line = s:ReplaceRightMostDelim(b:right, '', line)
|
let line = s:RemoveDelimiters('', b:right, line)
|
||||||
elseif indxRightAlt != -1
|
elseif indxRightAlt != -1
|
||||||
let line = s:ReplaceRightMostDelim(b:rightAlt, '', line)
|
let line = s:RemoveDelimiters('', b:rightAlt, line)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user