diff options
author | Chet Ramey <chet.ramey@case.edu> | 2011-11-23 19:19:03 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2011-11-23 19:19:03 -0500 |
commit | 518937ab89be812ccd45e9b8c1ce4ad721d35ef6 (patch) | |
tree | dea0b2f2ee49c3d169ea6a119010469444877004 /text.c | |
parent | 603281bd9a333a5e8850ac78f00d2a964c3213de (diff) | |
download | readline-518937ab89be812ccd45e9b8c1ce4ad721d35ef6.tar.gz |
Readline-5.2.014 importbaserock/genivi/baseline
Diffstat (limited to 'text.c')
-rw-r--r-- | text.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -857,6 +857,9 @@ _rl_insert_next (count) c = rl_read_key (); RL_UNSETSTATE(RL_STATE_MOREINPUT); + if (c < 0) + return -1; + #if defined (HANDLE_SIGNALS) if (RL_ISSTATE (RL_STATE_CALLBACK) == 0) _rl_restore_tty_signals (); @@ -1520,6 +1523,9 @@ _rl_char_search (count, fdir, bdir) mb_len = _rl_read_mbchar (mbchar, MB_LEN_MAX); + if (mb_len <= 0) + return -1; + if (count < 0) return (_rl_char_search_internal (-count, bdir, mbchar, mb_len)); else @@ -1536,6 +1542,9 @@ _rl_char_search (count, fdir, bdir) c = rl_read_key (); RL_UNSETSTATE(RL_STATE_MOREINPUT); + if (c < 0) + return -1; + if (count < 0) return (_rl_char_search_internal (-count, bdir, c)); else |