Lines Matching refs:l

116 vreopen(int p, int lineno, int l)  in vreopen()  argument
119 struct vlinfo *vp = &vlinfo[l]; in vreopen()
130 p = vglitchup(l, 0); in vreopen()
146 if (state == VISUAL && l == vcline && vp->vliny < 0) { in vreopen()
209 vglitchup(int l, int o) in vglitchup() argument
211 struct vlinfo *vp = &vlinfo[l]; in vglitchup()
217 if (l < vcnt - 1) { in vglitchup()
234 vinslin((vp+1)->vliny, need, l); in vglitchup()
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()
319 vopenup(cnt, could, l); in vinslin()
330 vopenup(int cnt, bool could, int l) in vopenup() argument
332 struct vlinfo *vc = &vlinfo[l + 1]; in vopenup()
337 tfixnl(), fprintf(trace, "vopenup(%d, %d, %d)\n", cnt, could, l); in vopenup()
642 int l; in vredraw() local
668 l = 0; in vredraw()
672 while (l < vcnt && LINE(l) < p) in vredraw()
673 l++, tp++; in vredraw()
681 for (; l < vcnt && Peekkey != ATTN; l++) { in vredraw()
682 if (l == vcline) in vredraw()
690 if (LINE(l) != LINE(l + 1) && LINE(l) != p) { in vredraw()
698 vdellin(p, LINE(l) - p, l); in vredraw()
705 LINE(l) = p; in vredraw()
706 if (FLAGS(l) & VDIRT) { in vredraw()
707 DEPTH(l) = vdepth(); in vredraw()
708 if (l != vcline && p + DEPTH(l) - 1 > WBOT) { in vredraw()
712 FLAGS(l) &= ~VDIRT; in vredraw()
713 (void) vreopen(p, lineno(tp), l); in vredraw()
714 p = LINE(l) + DEPTH(l); in vredraw()
716 p += DEPTH(l); in vredraw()
727 vcline = l; in vredraw()
761 vdellin(int p, int cnt, int l) in vdellin() argument
771 FLAGS(l) |= VDIRT; in vdellin()
776 tfixnl(), fprintf(trace, "vdellin(%d, %d, %d)\n", p, cnt, l); in vdellin()
801 vcloseup(l, cnt); in vdellin()
859 int l; in vsync1() local
879 l = 0; in vsync1()
880 while (l < vcnt && vp->vliny < p) in vsync1()
881 l++, vp++; in vsync1()
891 if (l == 0 && state != VISUAL || in vsync1()
892 (l < vcnt && (vp->vliny <= p || vp[0].vliny == vp[1].vliny))) { in vsync1()
893 if (l == 0 || vp->vliny < p || (vp->vflags & VDIRT)) { in vsync1()
894 if (l == vcline) in vsync1()
897 getaline(dot[l - vcline]); in vsync1()
902 if (l != vcline && (vp->vflags & VDIRT)) { in vsync1()
908 (void) vreopen(p, lineDOT() + (l - vcline), l); in vsync1()
912 l++; in vsync1()
918 vclrlin(p, dot + (l - vcline)), p++; in vsync1()
931 vcloseup(int l, int cnt) in vcloseup() argument
937 tfixnl(), fprintf(trace, "vcloseup(%d, %d)\n", l, cnt); in vcloseup()
939 for (i = l + 1; i <= vcnt; i++) 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()
965 if (l >= vcnt) in vreplace()
967 if (l < 0) { in vreplace()
968 if (l + cnt < 0) { in vreplace()
980 cnt += l; in vreplace()
981 l = 0; in vreplace()
1011 if (cnt == newcnt || vcnt - l == newcnt && insert_line && delete_line) { in vreplace()
1012 if (cnt > 1 && l + cnt > vcnt) in vreplace()
1014 vdirty(l, newcnt); 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()
1045 if (newcnt > 1 && l + newcnt > vcnt + 1) in vreplace()
1052 if (l + newcnt > WBOT && insert_line && delete_line) { in vreplace()
1053 vcnt = l; in vreplace()
1061 for (; from >= l; from--, to--) in vreplace()
1063 for (from = to + 1, to = l; to < l + newcnt && to <= WBOT + 1; to++) { in vreplace()
1076 vdirty(l, WECHO); in vreplace()
1116 int l; in vdirty() local
1118 for (l = base; l < vcnt; l++) { in vdirty()
1121 FLAGS(l) |= VDIRT; in vdirty()