Add "r" command.
Fix lockup when searching for an empty string.
Convert Alt-X or Meta-X into ESC then X.