Page 1 of 1

Don't move cursor when saving and stripping whitespace

Posted: Tue Aug 19, 2003 3:34 pm
by jeffy
I always strip trailing whitespace from my document when saving

Configure menu -->
Preference dialog -->
Document Classes branch -->
Default Document Class -->
Strip trailing spaces from lines when saving CHECKBOX (checked)

However, I find it annoying that, when the cursor is currently at the end of some trailing whitespace, that the cursor is moved to the left (the result of the whitespace being stripped).

I don't mind that the whitespace is stripped, but if I *don't* move the cursor, but rather keep typing, I want the whitespace, on just this line, to be preserved.

In otherwords, DO strip the whitespace, but DON'T move the cursor. *If* I keep typing, then re-implement (re-type) that whitespace. If I *move* the cursor (before typing anything), then the whitespace should remain stripped/gone.

Is this clear?