On 26/09/2007, John Gabriele jmg3000@gmail.com wrote:
If I'm understanding Catalin's problem correctly, it sounds like he wants a way to make sure only the part of the code he's changing has the trailing spaces stripped. Seems like it might be simplest to have an item under the Edit menu for "strip trailing spaces in selection" (that is, affect the text that's currently selected).
I mainly want _not_ to create new trailing spaces. While I'm pretty careful with lines of code, there is no way in the current geany to avoid the empty lines having spaces due to the automatic indentation. Hence the patch to strip the trailing spaces on the current line when hitting <Enter> (both emacs and vi do this but I try to use geany more and more).