switch from \1xb to \e in the code

Using `\e` is clearer and shorter than `\x1b`. It's also consistent with how
we write related control chars; e.g., we don't write `\x0a` we write '\n'.
This commit is contained in:
Kurtis Rader
2016-12-23 16:37:00 -08:00
parent 58347d494a
commit 7c40abe4a6
10 changed files with 30 additions and 31 deletions

View File

@@ -2719,7 +2719,7 @@ const wchar_t *reader_readline(int nchars) {
break;
}
// Escape was pressed.
case L'\x1b': {
case L'\e': {
if (data->search_mode) {
data->search_mode = NO_SEARCH;