Call erase_caret when moving cursor over newline