![]() 1. Fixes bug where this would not rewrap: ```rs // This is the first long comment block to be wrapped. fn my_func(a: u32); // This is the second long comment block to be wrapped. ``` 2. Comment prefix boundaries (Notice now they don't merge between different comment prefix): Initial text: ```rs // A regular long long comment to be wrapped. // A second regular long comment to be wrapped. /// A documentation long comment to be wrapped. ``` Upon rewrap: ```rs // A regular long long comment to be // wrapped. A second regular long // comment to be wrapped. /// A documentation long comment to be /// wrapped. ``` 3. Indent boundaries (Notice now they don't merge between different indentation): Initial text: ```rs fn foo() { // This is a long comment at the base indent. // This is a long comment at the base indent. // This is a long comment at the next indent. // This is a long comment at the next indent. // This is a long comment at the base indent. } ``` Upon rewrap: ```rs fn foo() { // This is a long comment at the base // indent. This is a long comment at the // base indent. // This is a long comment at the // next indent. This is a long // comment at the next indent. // This is a long comment at the base // indent. } ``` Release Notes: - Fixed an issue where rewrap would not work with selection when two comment blocks are separated with line of code. - Improved rewrap to respect changes in indentation or comment prefix (e.g. `//` vs `///`) as boundaries so that it doesn't merge them into one mangled text. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
LICENSE-GPL |