Lines Matching full:vip
58 VI_PRIVATE *vip; in vs_busy() local
70 vip = VIP(sp); in vs_busy()
80 ++vip->busy_ref; in vs_busy()
81 if (vip->totalcount != 0 || vip->busy_ref != 1) in vs_busy()
85 vip->busy_ch = 0; in vs_busy()
86 timepoint_steady(&vip->busy_ts); in vs_busy()
89 (void)gp->scr_cursor(sp, &vip->busy_oldy, &vip->busy_oldx); in vs_busy()
95 (void)gp->scr_cursor(sp, ¬used, &vip->busy_fx); in vs_busy()
97 (void)gp->scr_move(sp, LASTLINE(sp), vip->busy_fx); in vs_busy()
100 if (vip->busy_ref == 0) in vs_busy()
102 --vip->busy_ref; in vs_busy()
108 if (vip->totalcount == 0 && vip->busy_ref == 0) { in vs_busy()
112 (void)gp->scr_move(sp, vip->busy_oldy, vip->busy_oldx); in vs_busy()
115 if (vip->totalcount != 0 || vip->busy_ref == 0) in vs_busy()
121 timespecsub(&ts_diff, &vip->busy_ts); in vs_busy()
124 vip->busy_ts = ts; in vs_busy()
127 if (vip->busy_ch == sizeof(flagc) - 1) in vs_busy()
128 vip->busy_ch = 0; in vs_busy()
129 (void)gp->scr_move(sp, LASTLINE(sp), vip->busy_fx); in vs_busy()
130 (void)gp->scr_addstr(sp, flagc + vip->busy_ch++, 1); in vs_busy()
131 (void)gp->scr_move(sp, LASTLINE(sp), vip->busy_fx); in vs_busy()
230 VI_PRIVATE *vip; in vs_msg() local
235 vip = VIP(sp); in vs_msg()
344 if (vip->lcontinue != 0) { in vs_msg()
345 if (len + vip->lcontinue + padding > maxcols) in vs_msg()
346 vs_output(sp, vip->mtype, ".\n", 2); in vs_msg()
348 vs_output(sp, vip->mtype, ";", 1); in vs_msg()
352 vip->mtype = mtype; in vs_msg()
357 if (len + vip->lcontinue > maxcols) { in vs_msg()
358 for (e = s + (maxcols - vip->lcontinue); in vs_msg()
361 e = t = s + (maxcols - vip->lcontinue); in vs_msg()
395 VI_PRIVATE *vip; in vs_output() local
402 vip = VIP(sp); in vs_output()
414 if (len + vip->lcontinue > sp->cols) in vs_output()
415 len = sp->cols - vip->lcontinue; in vs_output()
423 if (vip->lcontinue == 0) { in vs_output()
425 if (vip->totalcount == 1) { in vs_output()
430 F_SET(vip, VIP_DIVIDER); in vs_output()
431 ++vip->totalcount; in vs_output()
432 ++vip->linecount; in vs_output()
434 if (vip->totalcount == sp->t_maxrows && in vs_output()
435 F_ISSET(vip, VIP_DIVIDER)) { in vs_output()
436 --vip->totalcount; in vs_output()
437 --vip->linecount; in vs_output()
438 F_CLR(vip, VIP_DIVIDER); in vs_output()
441 if (vip->totalcount != 0) in vs_output()
445 ++vip->totalcount; in vs_output()
446 ++vip->linecount; in vs_output()
451 (void)gp->scr_move(sp, LASTLINE(sp), vip->lcontinue); in vs_output()
485 vip->lcontinue = 0; in vs_output()
498 gp->scr_cursor(sp, ¬used, &vip->lcontinue); in vs_output()
515 VI_PRIVATE *vip; in vs_ex_resolve() local
519 vip = VIP(sp); in vs_ex_resolve()
523 F_SET(vip, VIP_CUR_INVALID); in vs_ex_resolve()
526 if (vip->lcontinue != 0) { in vs_ex_resolve()
527 vs_output(sp, vip->mtype, ".", 1); in vs_ex_resolve()
528 vip->lcontinue = 0; in vs_ex_resolve()
530 vip->mtype = M_NONE; in vs_ex_resolve()
552 if (!F_ISSET(sp, SC_EX_WAIT_YES) && vip->totalcount < 2) { in vs_ex_resolve()
578 F_SET(vip, VIP_N_EX_PAINT); in vs_ex_resolve()
588 if (F_ISSET(vip, VIP_N_EX_REDRAW)) in vs_ex_resolve()
609 if (vip->totalcount > 1) { in vs_ex_resolve()
612 ev.e_flno = vip->totalcount >= in vs_ex_resolve()
613 sp->rows ? 1 : sp->rows - vip->totalcount; in vs_ex_resolve()
617 vip->linecount = vip->lcontinue = vip->totalcount = 0; in vs_ex_resolve()
623 vip->linecount = vip->lcontinue = vip->totalcount = 0; in vs_ex_resolve()
640 VI_PRIVATE *vip; in vs_resolve() local
652 vip = VIP(sp); in vs_resolve()
689 F_SET(vip, VIP_CUR_INVALID); in vs_resolve()
692 switch (vip->totalcount) { in vs_resolve()
704 F_SET(vip, VIP_S_MODELINE); in vs_resolve()
716 ev.e_flno = vip->totalcount >= in vs_resolve()
717 sp->rows ? 1 : sp->rows - vip->totalcount; in vs_resolve()
725 vip->linecount = vip->lcontinue = vip->totalcount = 0; in vs_resolve()
745 VI_PRIVATE *vip; in vs_scroll() local
748 vip = VIP(sp); in vs_scroll()
755 (void)gp->scr_move(sp, vip->totalcount < in vs_scroll()
756 sp->rows ? LASTLINE(sp) - vip->totalcount : 0, 0); in vs_scroll()
765 if (wtype == SCROLL_W_QUIT && vip->linecount < sp->t_maxrows) in vs_scroll()
778 VI_PRIVATE *vip; in vs_wait() local
784 vip = VIP(sp); in vs_wait()
806 ++vip->totalcount; in vs_wait()
807 vip->linecount = 0; in vs_wait()