Lines Matching refs:cnt

56 	int cnt;  in vopen()  local
97 cnt = p + vdepth() - LINE(1); in vopen()
98 if (cnt > 0) { in vopen()
99 p -= cnt; in vopen()
107 cnt = vreopen(p, lineno(tp), vcline); in vopen()
109 LINE(vcnt) = LINE(vcline) + cnt; in vopen()
250 vinslin(int p, int cnt, int l) in vinslin() argument
257 tfixnl(), fprintf(trace, "vinslin(%d, %d, %d)\n", p, cnt, l); in vinslin()
259 if (p + cnt > WBOT && clr_eos) { in vinslin()
263 cnt = WECHO + 1 - p; in vinslin()
264 vgoto(p, 0), vputp(clr_eos, cnt); in vinslin()
266 vadjAL(p, cnt); in vinslin()
273 for (i = cnt; i > 0; i--) { in vinslin()
287 vadjAL(p, cnt); in vinslin()
293 if (parm_insert_line && (cnt>1 || *insert_line==0)) { in vinslin()
295 vputp(tparm(parm_insert_line, cnt, p), WECHO+1-p); in vinslin()
302 for (i=cnt; i>0; i--) in vinslin()
309 for (i = cnt - 1; i > 0; i--) { in vinslin()
316 vadjAL(p, cnt); in vinslin()
319 vopenup(cnt, could, l); in vinslin()
330 vopenup(int cnt, bool could, int l) in vopenup() argument
337 tfixnl(), fprintf(trace, "vopenup(%d, %d, %d)\n", cnt, could, l); in vopenup()
350 vc->vliny += cnt; in vopenup()
356 vc->vliny += cnt, vc->vflags |= VDIRT; in vopenup()
374 vadjAL(int p, int cnt) in vadjAL() argument
381 tfixnl(), fprintf(trace, "vadjal(%d, %d)\n", p, cnt); in vadjAL()
384 for (from = p, to = p + cnt; to <= WECHO; from++, to++) in vadjAL()
404 int cnt; in vrollup() local
411 cnt = dl - (splitw ? WECHO : WBOT); in vrollup()
414 vmoveitup(cnt, 1); in vrollup()
415 vscroll(cnt); in vrollup()
416 destline = dl - cnt, destcol = dc; in vrollup()
432 vmoveitup(int cnt, bool doclr) in vmoveitup() argument
435 if (cnt == 0) in vmoveitup()
439 tfixnl(), fprintf(trace, "vmoveitup(%d)\n", cnt); in vmoveitup()
447 while (cnt > 0) in vmoveitup()
448 vputp(scroll_forward, 0), cnt--; in vmoveitup()
451 destline = WECHO + cnt; in vmoveitup()
468 vscroll(int cnt) in vscroll() argument
475 fprintf(trace, "vscroll(%d)\n", cnt); in vscroll()
477 if (cnt < 0 || cnt > TUBELINES) in vscroll()
479 if (cnt == 0) in vscroll()
482 for (to = ZERO, from = ZERO + cnt; to <= WECHO - cnt; to++, from++) in vscroll()
489 LINE(from) -= cnt; in vscroll()
761 vdellin(int p, int cnt, int l) in vdellin() argument
765 if (cnt == 0) in vdellin()
767 if (delete_line == NOSTR || cnt < 0) { in vdellin()
776 tfixnl(), fprintf(trace, "vdellin(%d, %d, %d)\n", p, cnt, l); in vdellin()
783 if (parm_delete_line && (cnt>1 || *delete_line==0)) { in vdellin()
784 vputp(tparm(parm_delete_line, cnt, p), WECHO-p); in vdellin()
791 for (i=0; i<cnt; i++) /* .. and scroll cnt times */ in vdellin()
797 for (i = 0; i < cnt; i++) in vdellin()
800 vadjDL(p, cnt); in vdellin()
801 vcloseup(l, cnt); in vdellin()
807 vadjDL(int p, int cnt) in vadjDL() argument
814 tfixnl(), fprintf(trace, "vadjDL(%d, %d)\n", p, cnt); in vadjDL()
822 for (from = p + cnt, to = p; from <= WECHO; from++, to++) in vadjDL()
931 vcloseup(int l, int cnt) in vcloseup() argument
937 tfixnl(), fprintf(trace, "vcloseup(%d, %d)\n", l, cnt); in vcloseup()
940 LINE(i) -= cnt; in vcloseup()
954 vreplace(int l, int cnt, int newcnt) in vreplace() argument
961 tfixnl(), fprintf(trace, "vreplace(%d, %d, %d)\n", l, cnt, newcnt); in vreplace()
968 if (l + cnt < 0) { in vreplace()
980 cnt += l; in vreplace()
993 if (cnt < 0) in vreplace()
994 cnt = 0; in vreplace()
1002 if (cnt > value(vi_REPORT) || newcnt > value(vi_REPORT)) in vreplace()
1011 if (cnt == newcnt || vcnt - l == newcnt && insert_line && delete_line) { in vreplace()
1012 if (cnt > 1 && l + cnt > vcnt) in vreplace()
1019 if (cnt > 0) { in vreplace()
1024 if (cnt > 1 && l + cnt > vcnt) in vreplace()
1026 if (l + cnt >= vcnt) in vreplace()
1027 cnt = vcnt - l; in vreplace()
1029 for (from = l + cnt, to = l; from <= vcnt; to++, from++) in vreplace()
1031 vcnt -= cnt; in vreplace()
1071 if (Pline == numbline && cnt != newcnt) in vreplace()