Lines Matching refs:cnt

81 vupdown(int cnt, unsigned char *curs)  in vupdown()  argument
84 if (cnt > 0) in vupdown()
85 vdown(cnt, 0, 0); in vupdown()
86 else if (cnt < 0) in vupdown()
87 vup(-cnt, 0, 0); in vupdown()
101 vup(int cnt, int ind, bool scroll) in vup() argument
111 if (cnt > i) { in vup()
112 ind -= cnt - i; in vup()
115 cnt = i; in vup()
117 if (!scroll && cnt <= vcline) { in vup()
118 vshow(dot - cnt, NOLINE); in vup()
121 cnt -= vcline, dot -= vcline, vcline = 0; in vup()
125 cnt <= WTOP - ZERO && vfit(dot - cnt, cnt) <= WTOP - ZERO) in vup()
128 …VISUAL || (!insert_line && !scroll_reverse) || (!scroll && (cnt > tot || vfit(dot - cnt, cnt) > to… in vup()
132 vcontext(dot + ind - cnt, '.'); in vup()
136 vrollR(cnt); in vup()
149 vdown(int cnt, int ind, bool scroll) in vdown() argument
159 if (cnt > i) { in vdown()
160 ind -= cnt - i; in vdown()
163 cnt = i; in vdown()
166 if (!scroll && cnt <= i) { in vdown()
167 vshow(dot + cnt, NOLINE); in vdown()
170 cnt -= i, dot += i, vcline += i; in vdown()
175 if (state != VISUAL || cnt - tot > 0 || vfit(dot, cnt) > tot / 3 + 1) { in vdown()
177 vcontext(dot + cnt, '.'); in vdown()
181 if (cnt > 0) in vdown()
182 vroll(cnt); in vdown()
263 int cnt = addr - dot; in vshow() local
264 int i = vcline + cnt; in vshow()
326 vback(tp, cnt) in vback() argument
327 int cnt; in vback()
332 if (cnt > 0)
336 if (d > cnt)
338 cnt -= d;
347 vfit(line *tp, int cnt) in vfit() argument
352 while (cnt > 0) { in vfit()
353 cnt--; in vfit()
354 getaline(tp[cnt]); in vfit()
366 vroll(int cnt) in vroll() argument
375 tfixnl(), fprintf(trace, "vroll(%d)\n", cnt); in vroll()
385 if (vcookit(cnt)) in vroll()
388 for (; cnt > 0 && Peekkey != ATTN; cnt--) { in vroll()
407 vrollR(int cnt) in vrollR() argument
414 tfixnl(), fprintf(trace, "vrollR(%d), dot=%d\n", cnt, lineDOT()); in vrollR()
417 if (vcookit(cnt)) in vrollR()
424 for (; cnt > 0 && Peekkey != ATTN; cnt--) { in vrollR()
449 vcookit(int cnt) in vcookit() argument
452 return (cnt > 1 && (ospeed < B1200 && !initev || cnt > lines * 2)); in vcookit()