Fix leftover text in command entry, which broke "/<ret>" to re-search.