Lines Matching refs:history
188 if (rs->history[idx] == NULL) { in readline_up_char()
197 rs->history[rs->hist_entry]); in readline_up_char()
208 rs->history[++rs->hist_entry] != NULL) { in readline_down_char()
210 rs->history[rs->hist_entry]); in readline_down_char()
229 hist_entry = rs->history[rs->hist_entry]; in readline_hist_add()
237 hist_entry = rs->history[idx]; in readline_hist_add()
248 memmove(&rs->history[idx], &rs->history[idx + 1], in readline_hist_add()
250 rs->history[READLINE_MAX_CMDS - 1] = NULL; in readline_hist_add()
252 if (rs->history[idx] == NULL) { in readline_hist_add()
261 g_free(rs->history[0]); in readline_hist_add()
262 memmove(rs->history, &rs->history[1], in readline_hist_add()
264 rs->history[READLINE_MAX_CMDS - 1] = NULL; in readline_hist_add()
270 rs->history[idx] = new_entry; in readline_hist_add()
554 return rs->history[index]; in readline_get_history()
565 g_free(rs->history[i]); in readline_free()