borela / naomi

Sublime Text enhanced syntax highlighting for JavaScript ES6/ES7/ES2015/ES2016/ES2017+, Babel, FlowType, React JSX, Styled Components, HTML5, SCSS3, PHP 7, phpDoc, PHPUnit, MQL4. Basic: Git config files.
Other
558 stars 18 forks source link

Toggle comment unexpectedly uncomments whole block #199

Closed ESRogs closed 5 years ago

ESRogs commented 5 years ago

When multiple lines are commented out, invoking the naomi_toggle_jsx_comment {"block": false} command on the last line uncomments all the lines.

I'd expect only the line the cursor is on to be uncommented. That would match the behavior of the regular built in toggle_comment {"block": false} command.

// console.log('foo');
// console.log('bar');
// console.log('baz');

naomi_toggle_jsx_comment

StreetStrider commented 5 years ago

186

ESRogs commented 5 years ago

This appears to be a duplicate of the bug @StreetStrider referenced: #186.