Home | History | Annotate | Download | only in vi

Lines Matching refs:nsp

625 	SCR *nsp;
638 nsp = vs_getbg(sp, np);
641 if (vs_swap(sp, &nsp, np))
644 if ((*nspp = nsp) == NULL) {
654 TAILQ_REMOVE(&gp->hq, nsp, q);
657 if (vs_split(sp, nsp, 0)) {
658 TAILQ_INSERT_TAIL(&gp->hq, nsp, q);
680 SCR *nsp;
686 if (vs_discard(sp, &nsp))
688 if (nsp == NULL) {
703 sp->nextdisp = nsp;
720 SCR *nsp, *list[2];
726 if ((*nspp = nsp = vs_getbg(sp, name)) == NULL)
743 sp->nextdisp = nsp;
747 VIP(nsp)->srows = VIP(sp)->srows;
750 nsp->cols = sp->cols;
751 nsp->rows = sp->rows; /* XXX: Only place in vi that sets rows. */
752 nsp->roff = sp->roff;
761 if (IS_SMALL(nsp)) {
762 nsp->t_minrows = nsp->t_rows = O_VAL(nsp, O_WINDOW);
763 if (nsp->t_rows > sp->t_maxrows)
764 nsp->t_rows = nsp->t_maxrows;
765 if (nsp->t_minrows > sp->t_maxrows)
766 nsp->t_minrows = nsp->t_maxrows;
768 nsp->t_rows = nsp->t_maxrows = nsp->t_minrows = nsp->rows - 1;
771 nsp->defscroll = nsp->t_maxrows / 2;
774 CALLOC_RET(nsp, _HMAP(nsp), SMAP *, SIZE_HMAP(nsp), sizeof(SMAP));
775 _TMAP(nsp) = _HMAP(nsp) + (nsp->t_rows - 1);
778 nsp->wp = sp->wp;
779 if (vs_sm_fill(nsp, nsp->lno, P_FILL))
788 TAILQ_REMOVE(&gp->hq, nsp, q);
789 TAILQ_INSERT_AFTER(&wp->scrq, sp, nsp, q);
795 F_SET(VIP(nsp), VIP_CUR_INVALID);
798 F_SET(nsp, SC_SCR_REDRAW | SC_STATUS);
800 list[0] = nsp; list[1] = NULL;
937 SCR *nsp;
948 TAILQ_FOREACH(nsp, &gp->hq, q)
949 if (!strcmp(nsp->frp->name, name))
951 if (nsp != NULL)
952 return (nsp);
955 TAILQ_FOREACH(nsp, &gp->hq, q) {
956 if ((p = strrchr(nsp->frp->name, '/')) == NULL)
957 p = nsp->frp->name;
963 return nsp;