lineedit: don't block when looking for escape sequence in vi-mode
authorRon Yorston <rmy@tigress.co.uk>
Fri, 12 Dec 2014 08:29:41 +0000 (08:29 +0000)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 15 Dec 2014 12:30:58 +0000 (13:30 +0100)
commit20cd31a2d7cc1b633b725280eb7546ca14eef7eb
tree934bdc678f3a66b381f83f3269b586aded5e4206
parentacb8be721768b54075a51d1859d390904a0f1f6c
lineedit: don't block when looking for escape sequence in vi-mode

In vi-mode lineedit tries to detect some escape sequences.
After the ESC it reads the next character to check for certain
values.  This read should have a timeout or a user-entered ESC to
switch to command mode doesn't properly handle the next character.

Signed-off-by: Ron Yorston <rmy@tigress.co.uk>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/lineedit.c