At the moment, if the cursor is at position 5, it takes three wordLefts to move to position 0. I'd expect one.
Similarly, if the cursor is at position 6, it takes two wordRights to move to position 9. I'd expect one.
This patch checks that not only whitespace but non-whitespace too must be present for a position to be considered a word boundary. Let me know what you think.
Say the line being edited is:
At the moment, if the cursor is at position 5, it takes three wordLefts to move to position 0. I'd expect one.
Similarly, if the cursor is at position 6, it takes two wordRights to move to position 9. I'd expect one.
This patch checks that not only whitespace but non-whitespace too must be present for a position to be considered a word boundary. Let me know what you think.