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/readline.c | |
parent | 53ee3efdd804d38a5c57372c0722804607ceb256 (diff) | |
download | FreeBSD-src-27ef633cd3f7fd5fb6cb033edd2c1747a6e59acb.zip FreeBSD-src-27ef633cd3f7fd5fb6cb033edd2c1747a6e59acb.tar.gz |
V2.2 import
Diffstat (limited to 'contrib/libreadline/readline.c')
-rw-r--r-- | contrib/libreadline/readline.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/contrib/libreadline/readline.c b/contrib/libreadline/readline.c index dcd8f81..8ff6e98 100644 --- a/contrib/libreadline/readline.c +++ b/contrib/libreadline/readline.c @@ -64,7 +64,7 @@ #include "history.h" #ifndef RL_LIBRARY_VERSION -# define RL_LIBRARY_VERSION "2.1-bash" +# define RL_LIBRARY_VERSION "2.2-bash" #endif /* Evaluates its arguments multiple times. */ @@ -78,7 +78,11 @@ /* Variables and functions imported from terminal.c */ extern int _rl_init_terminal_io (); extern void _rl_enable_meta_key (); +#ifdef _MINIX +extern void _rl_output_character_function (); +#else extern int _rl_output_character_function (); +#endif extern void _rl_get_screen_size (); extern int _rl_enable_meta; @@ -1027,6 +1031,18 @@ _rl_fix_point (fix_mark_too) } #undef _RL_FIX_POINT +void +_rl_replace_text (text, start, end) + char *text; + int start, end; +{ + rl_begin_undo_group (); + rl_delete_text (start, end + 1); + rl_point = start; + rl_insert_text (text); + rl_end_undo_group (); +} + /* **************************************************************** */ /* */ /* Readline character functions */ |