Home
last modified time | relevance | path

Searched refs:allow_cur (Results 1 – 1 of 1) sorted by relevance

/external/mksh/src/
Dhistrap.c419 hist_get(const char *str, bool approx, bool allow_cur) in hist_get() argument
435 hp = hist_get_newest(allow_cur); in hist_get()
440 } else if (!allow_cur && hp == histptr) { in hist_get()
458 hist_get_newest(bool allow_cur) in hist_get_newest() argument
460 if (histptr < history || (!allow_cur && histptr == history)) { in hist_get_newest()
464 return (allow_cur ? histptr : histptr - 1); in hist_get_newest()