home button & whitespace

There was a question:
<blockquote>
Home button in editor moves cursor not to first non-space symbol but to the real beginning. Is it possible to change?
</blockquote>
and this
<blockquote>
Home moves to the first non-space character, and if Home is pressed while already at the first non-space character, then it takes you to the very start of the line? best of both worlds that way.
</blockquote>
So this commit fix editor in this way.

P.S. I suppose that it will be useful to add new editor settings param . I can try to do it later.