geany/geany — pull request #6 by joshuarh (2011-10-13 01:56:15+00:00)
Title: Dont comment whitespace

This changes `editor_do_comment_toggle` so it ignores blank lines when toggling a single line comment. That way if you have 'strip trailing spaces and tabs upon saving a file' enabled, you'll never strip the space in the default comment marker ('~') and be left with un-toggle-able comments. Duplicate of http://sourceforge.net/tracker/index.php?func=detail&aid=3204955&group_id=153444&atid=787791 for the git switch. The only concern I have was that if you search for "skip blank lines" (without quotes), you'll see 3 other spots where blank lines are skipped. Should I be using an if statement? Why are there 3 other places and not only 1 (for commenting and uncommenting)? On the bright side I've compiled this and it appears to work without any extra debug errors/messages.