22 #define READLINE_LIBRARY 24 #if defined (HAVE_CONFIG_H) 28 #include <sys/types.h> 30 #if defined (HAVE_UNISTD_H) 34 #if defined (HAVE_STDLIB_H) 59 #define DEFAULT_MAX_KILLS 10 116 for (i = 0; i < slot; i++)
134 new = (
char *)
xmalloc (1 + strlen (old) + strlen (text));
521 if (rl_kill_index < 0)
533 #if defined (VI_MODE) 553 if (rl_kill_index < 0)
579 for (i = 0; i < history_skip; i++)
605 #if defined (VI_MODE) 635 static int history_skip = 0;
636 static int explicit_arg_p = 0;
637 static int count_passed = 1;
638 static int direction = 1;
639 static int undo_needed = 0;
646 count_passed = count;
654 direction = -direction;
655 history_skip += direction;
656 if (history_skip < 0)
665 undo_needed = retval == 0;
737 rl_paste_from_clipboard (
int count,
int key)
742 if (OpenClipboard (
NULL) == 0)
745 data = (
char *)GetClipboardData (CF_TEXT);
748 ptr =
strchr (data,
'\r');
752 ptr = (
char *)
xmalloc (len + 1);
754 strncpy (ptr, data, len);
HIST_ENTRY * previous_history(void)
int rl_backward_kill_word(int count, int key)
int rl_delete_text(int from, int to)
int rl_copy_forward_word(int count, int key)
int _rl_set_mark_at_pos()
int rl_beg_of_line(int count, int key)
int rl_kill_text(int from, int to)
int rl_copy_backward_word(int count, int key)
int rl_yank_last_arg(int count, int key)
int rl_kill_line(int direction, int key)
static int rl_yank_nth_arg_internal()
int rl_kill_word(int count, int key)
int rl_vi_put(int count, int key)
char * _rl_bracketed_text(size_t *lenp)
int rl_kill_region(int count, int key)
int rl_set_retained_kills(int num)
int rl_kill_full_line(int count, int key)
static nls_uint32 nls_uint32 i
int _rl_last_command_was_kill
int rl_yank(int count, int key)
int history_set_pos(int pos)
int rl_end_undo_group(void)
int rl_backward_kill_line(int direction, int key)
int rl_forward_word(int count, int key)
char * rl_copy_text(int from, int to)
void _rl_add_macro_char(int c)
int rl_insert_text(const char *string)
static char ** rl_kill_ring
rl_command_func_t * rl_last_func
static int rl_kill_ring_length
#define RL_STATE_MACRODEF
int rl_yank_nth_arg(int count, int key)
#define RL_STATE_MOREINPUT
int rl_vi_append_mode(int count, int key)
int rl_begin_undo_group(void)
static int _rl_copy_to_kill_ring()
static int _rl_copy_word_as_kill()
int rl_unix_line_discard(int count, int key)
static int region_kill_internal()
int rl_copy_region_to_kill(int count, int key)
int rl_backward_word(int count, int key)
int rl_unix_word_rubout(int count, int key)
#define DEFAULT_MAX_KILLS
int rl_yank_pop(int count, int key)
int rl_unix_filename_rubout(int count, int key)
int rl_vi_yank_pop(int count, int key)
int rl_end_of_line(int count, int key)
int rl_bracketed_paste_begin(int count, int key)
char * history_arg_extract(int first, int last, const char *string)