Exit early in command history search when there's no match