Empty lines are considered "uncommented" for toggle-comment sakes #114
Labels
C-Enhancement
Category: enhancement. Improvement
P-Low
Priority: low. Should yield priority to high and non-prioritized
Summary
Consider the following snippet:
If you now select the commented out section, but also include the empty line above (selection range indicated by
[
and]
):And hit CTRL+/, you end up receiving a second set of comments:
This is in my opinion surprising behavior, since I would expect it to ignore the empty line and instead uncomment the selection. Other editors (VS Code, IntelliJ) act as expected.
Should be trivially solvable by ignoring empty/space/tab-only lines when determining whether a section is already commented.
Context
The text was updated successfully, but these errors were encountered: