Lines Matching refs:hist_cur
80 static int hist_cur = -1; variable
94 hist_cur = -1; in hist_init()
121 if (hist_cur < 0) in hist_prev()
124 old_cur = hist_cur; in hist_prev()
125 if (--hist_cur < 0) in hist_prev()
126 hist_cur = hist_max; in hist_prev()
128 if (hist_cur == hist_add_idx) { in hist_prev()
129 hist_cur = old_cur; in hist_prev()
132 ret = hist_list[hist_cur]; in hist_prev()
142 if (hist_cur < 0) in hist_next()
145 if (hist_cur == hist_add_idx) in hist_next()
148 if (++hist_cur > hist_max) in hist_next()
149 hist_cur = 0; in hist_next()
151 if (hist_cur == hist_add_idx) in hist_next()
154 ret = hist_list[hist_cur]; in hist_next()
509 hist_cur = hist_add_idx; in cread_line()