fix a caret navigation bug introduced by 35a81d3e
fix ArgumentException occurring when pressing backspace at the start of the document, introduced by ebb5d25c