Up-arrow previous command completion in Bash

The REPL history actually stores your edits to it if you don’t execute it. This is handy in case you accidentally press up or down while editing because you don’t lose your work if you go back to it, but I agree it’s caught me out in the past, too.