fix repeating last command in command line (space-enter)