diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-07 06:45:33 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-07 06:45:33 -0800 |
commit | 65217f8589c16280d77b4790b55280d688eb31e6 (patch) | |
tree | a7125baa82b6b2a485254f18dc16d45d65ffefdd /isearch.c | |
parent | 6f402def6d87ebc5b043919e29df1b6e11dd8f0f (diff) | |
download | readline-65217f8589c16280d77b4790b55280d688eb31e6.tar.gz readline-65217f8589c16280d77b4790b55280d688eb31e6.tar.bz2 readline-65217f8589c16280d77b4790b55280d688eb31e6.zip |
applied patch readline52-005
Diffstat (limited to 'isearch.c')
-rw-r--r-- | isearch.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -327,8 +327,15 @@ _rl_isearch_dispatch (cxt, c) rl_command_func_t *f; f = (rl_command_func_t *)NULL; - - /* Translate the keys we do something with to opcodes. */ + + if (c < 0) + { + cxt->sflags |= SF_FAILED; + cxt->history_pos = cxt->last_found_line; + return -1; + } + + /* Translate the keys we do something with to opcodes. */ if (c >= 0 && _rl_keymap[c].type == ISFUNC) { f = _rl_keymap[c].function; |