Small buf fix related to enter-repeat-last-history-command-when-line-empty feature.