Lines Matching refs:hist_entry
180 if (rs->hist_entry == 0)
182 if (rs->hist_entry == -1) {
188 rs->hist_entry = idx;
190 rs->hist_entry--;
191 if (rs->hist_entry >= 0) {
193 rs->history[rs->hist_entry]);
200 if (rs->hist_entry == -1)
202 if (rs->hist_entry < READLINE_MAX_CMDS - 1 &&
203 rs->history[++rs->hist_entry] != NULL) {
205 rs->history[rs->hist_entry]);
208 rs->hist_entry = -1;
215 char *hist_entry, *new_entry;
221 if (rs->hist_entry != -1) {
223 hist_entry = rs->history[rs->hist_entry];
224 idx = rs->hist_entry;
225 if (strcmp(hist_entry, cmdline) == 0) {
231 hist_entry = rs->history[idx];
232 if (hist_entry == NULL)
234 if (strcmp(hist_entry, cmdline) == 0) {
236 new_entry = hist_entry;
259 rs->hist_entry = -1;
471 rs->hist_entry = -1;