repl: add edit_delete_prev_word (fixes #6311)