clear brush for selection box

fix a [side effect](http://i.imgur.com/E1doebE.png) introduced in #1507

(the editor I use also automatically cleared up some end-of-line whitespace so that's why this commit is so huge... though I guess it's a good thing to do)