Home | History | Annotate | Download | only in vi

Lines Matching refs:vip

68 	VI_PRIVATE *vip;
79 vip = VIP(sp);
89 ++vip->busy_ref;
90 if (vip->totalcount != 0 || vip->busy_ref != 1)
94 vip->busy_ch = 0;
95 (void)gettimeofday(&vip->busy_tv, NULL);
98 (void)gp->scr_cursor(sp, &vip->busy_oldy, &vip->busy_oldx);
104 (void)gp->scr_cursor(sp, &notused, &vip->busy_fx);
106 (void)gp->scr_move(sp, LASTLINE(sp), vip->busy_fx);
109 if (vip->busy_ref == 0)
111 --vip->busy_ref;
117 if (vip->totalcount == 0 && vip->busy_ref == 0) {
121 (void)gp->scr_move(sp, vip->busy_oldy, vip->busy_oldx);
124 if (vip->totalcount != 0 || vip->busy_ref == 0)
129 if (((tv.tv_sec - vip->busy_tv.tv_sec) * 1000000 +
130 (tv.tv_usec - vip->busy_tv.tv_usec)) < 125000)
132 vip->busy_tv = tv;
135 if (vip->busy_ch == sizeof(flagc) - 1)
136 vip->busy_ch = 0;
137 (void)gp->scr_move(sp, LASTLINE(sp), vip->busy_fx);
138 (void)gp->scr_addstr(sp, flagc + vip->busy_ch++, 1);
139 (void)gp->scr_move(sp, LASTLINE(sp), vip->busy_fx);
238 VI_PRIVATE *vip;
243 vip = VIP(sp);
352 if (vip->lcontinue != 0) {
353 if (len + vip->lcontinue + padding > maxcols)
354 vs_output(sp, vip->mtype, ".\n", 2);
356 vs_output(sp, vip->mtype, ";", 1);
360 vip->mtype = mtype;
365 if (len + vip->lcontinue > maxcols) {
366 for (e = s + (maxcols - vip->lcontinue);
369 e = t = s + (maxcols - vip->lcontinue);
404 VI_PRIVATE *vip;
411 vip = VIP(sp);
423 if (len + vip->lcontinue > sp->cols)
424 len = sp->cols - vip->lcontinue;
432 if (vip->lcontinue == 0) {
434 if (vip->totalcount == 1) {
439 F_SET(vip, VIP_DIVIDER);
440 ++vip->totalcount;
441 ++vip->linecount;
443 if (vip->totalcount == sp->t_maxrows &&
444 F_ISSET(vip, VIP_DIVIDER)) {
445 --vip->totalcount;
446 --vip->linecount;
447 F_CLR(vip, VIP_DIVIDER);
450 if (vip->totalcount != 0)
454 ++vip->totalcount;
455 ++vip->linecount;
460 (void)gp->scr_move(sp, LASTLINE(sp), vip->lcontinue);
499 vip->lcontinue = 0;
512 gp->scr_cursor(sp, &notused, &vip->lcontinue);
529 VI_PRIVATE *vip;
533 vip = VIP(sp);
537 F_SET(vip, VIP_CUR_INVALID);
540 if (vip->lcontinue != 0) {
541 vs_output(sp, vip->mtype, ".", 1);
542 vip->lcontinue = 0;
544 vip->mtype = M_NONE;
566 if (!F_ISSET(sp, SC_EX_WAIT_YES) && vip->totalcount < 2) {
592 F_SET(vip, VIP_N_EX_PAINT);
602 if (F_ISSET(vip, VIP_N_EX_REDRAW))
623 if (vip->totalcount > 1) {
626 ev.e_flno = vip->totalcount >=
627 sp->rows ? 1 : sp->rows - vip->totalcount;
631 vip->linecount = vip->lcontinue = vip->totalcount = 0;
637 vip->linecount = vip->lcontinue = vip->totalcount = 0;
655 VI_PRIVATE *vip;
668 vip = VIP(sp);
705 F_SET(vip, VIP_CUR_INVALID);
708 switch (vip->totalcount) {
720 F_SET(vip, VIP_S_MODELINE);
732 ev.e_flno = vip->totalcount >=
733 sp->rows ? 1 : sp->rows - vip->totalcount;
741 vip->linecount = vip->lcontinue = vip->totalcount = 0;
761 VI_PRIVATE *vip;
764 vip = VIP(sp);
771 (void)gp->scr_move(sp, vip->totalcount <
772 sp->rows ? LASTLINE(sp) - vip->totalcount : 0, 0);
781 if (wtype == SCROLL_W_QUIT && vip->linecount < sp->t_maxrows)
794 VI_PRIVATE *vip;
800 vip = VIP(sp);
822 ++vip->totalcount;
823 vip->linecount = 0;