nit : I think we should use a named optional here {bool excludeLastChar: false} to be consistent w/ the other methods in this class (see `moveCursorTo`) and to give a lit bit more meaning at the call sites.