Fix toggling single-line comments

Fixes #179
Merge pull request #180 from simenheg/master

Fix toggling single-line comments