Fix Issue #337 where caret at 0 deletes text

I think this behaves how you want it for Issue #337. Let me know if this is sufficient.