diff options
author | ache <ache@FreeBSD.org> | 1998-04-28 06:22:20 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1998-04-28 06:22:20 +0000 |
commit | 27ef633cd3f7fd5fb6cb033edd2c1747a6e59acb (patch) | |
tree | 6dc2ca04460e2afc2586db7905a62d8345684052 /contrib/libreadline/isearch.c | |
parent | 53ee3efdd804d38a5c57372c0722804607ceb256 (diff) | |
download | FreeBSD-src-27ef633cd3f7fd5fb6cb033edd2c1747a6e59acb.zip FreeBSD-src-27ef633cd3f7fd5fb6cb033edd2c1747a6e59acb.tar.gz |
V2.2 import
Diffstat (limited to 'contrib/libreadline/isearch.c')
-rw-r--r-- | contrib/libreadline/isearch.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/contrib/libreadline/isearch.c b/contrib/libreadline/isearch.c index ce2e58b..7decf95 100644 --- a/contrib/libreadline/isearch.c +++ b/contrib/libreadline/isearch.c @@ -262,7 +262,7 @@ rl_search_history (direction, invoking_key) break; } - if (c >= 0 && (CTRL_CHAR (c) || META_CHAR (c) || c == RUBOUT) && c != CTRL ('g')) + if (c >= 0 && (CTRL_CHAR (c) || META_CHAR (c) || c == RUBOUT) && c != CTRL ('G')) { rl_execute_next (c); break; @@ -298,6 +298,21 @@ rl_search_history (direction, invoking_key) free (lines); return 0; +#if 0 + /* delete character from search string. */ + case -3: + if (search_string_index == 0) + ding (); + else + { + search_string[--search_string_index] = '\0'; + /* This is tricky. To do this right, we need to keep a + stack of search positions for the current search, with + sentinels marking the beginning and end. */ + } + break; +#endif + default: /* Add character to search string and continue search. */ if (search_string_index + 2 >= search_string_size) |