Fix deletion and move-to-end in the in-game console.