Deleted Added
full compact
search.c (157184) search.c (165670)
1/* search.c - code for non-incremental searching in emacs and vi modes. */
2
3/* Copyright (C) 1992-2005 Free Software Foundation, Inc.
4
5 This file is part of the Readline Library (the Library), a set of
6 routines for providing Emacs style line input to programs that ask
7 for it.
8

--- 56 unchanged lines hidden (view full) ---

65
66static char *prev_line_found = (char *) NULL;
67
68static int rl_history_search_len;
69static int rl_history_search_pos;
70static char *history_search_string;
71static int history_string_size;
72
1/* search.c - code for non-incremental searching in emacs and vi modes. */
2
3/* Copyright (C) 1992-2005 Free Software Foundation, Inc.
4
5 This file is part of the Readline Library (the Library), a set of
6 routines for providing Emacs style line input to programs that ask
7 for it.
8

--- 56 unchanged lines hidden (view full) ---

65
66static char *prev_line_found = (char *) NULL;
67
68static int rl_history_search_len;
69static int rl_history_search_pos;
70static char *history_search_string;
71static int history_string_size;
72
73static UNDO_LIST *noninc_saved_undo_list;
74static void make_history_line_current PARAMS((HIST_ENTRY *));
75static int noninc_search_from_pos PARAMS((char *, int, int));
76static int noninc_dosearch PARAMS((char *, int));
77static int noninc_search PARAMS((int, int));
78static int rl_history_search_internal PARAMS((int, int));
79static void rl_history_search_reinit PARAMS((void));
80
81static _rl_search_cxt *_rl_nsearch_init PARAMS((int, int));

--- 125 unchanged lines hidden (view full) ---

207 finish reading the search string. */
208 rl_undo_list = 0;
209
210 /* Use the line buffer to read the search string. */
211 rl_line_buffer[0] = 0;
212 rl_end = rl_point = 0;
213
214 p = _rl_make_prompt_for_search (pchar ? pchar : ':');
73static void make_history_line_current PARAMS((HIST_ENTRY *));
74static int noninc_search_from_pos PARAMS((char *, int, int));
75static int noninc_dosearch PARAMS((char *, int));
76static int noninc_search PARAMS((int, int));
77static int rl_history_search_internal PARAMS((int, int));
78static void rl_history_search_reinit PARAMS((void));
79
80static _rl_search_cxt *_rl_nsearch_init PARAMS((int, int));

--- 125 unchanged lines hidden (view full) ---

206 finish reading the search string. */
207 rl_undo_list = 0;
208
209 /* Use the line buffer to read the search string. */
210 rl_line_buffer[0] = 0;
211 rl_end = rl_point = 0;
212
213 p = _rl_make_prompt_for_search (pchar ? pchar : ':');
215 rl_message (p, 0, 0);
214 rl_message ("%s", p, 0);
216 free (p);
217
218 RL_SETSTATE(RL_STATE_NSEARCH);
219
220 _rl_nscxt = cxt;
221
222 return cxt;
223}

--- 349 unchanged lines hidden ---
215 free (p);
216
217 RL_SETSTATE(RL_STATE_NSEARCH);
218
219 _rl_nscxt = cxt;
220
221 return cxt;
222}

--- 349 unchanged lines hidden ---