Lines Matching defs:ntp
255 TEXT *ntp, *tp; /* Input text structures. */
771 if ((ntp = text_init(sp, p,
774 TAILQ_INSERT_TAIL(sp->tiq, ntp, q);
777 ntp->insert = insert;
778 ntp->owrite = owrite;
779 ntp->lno = tp->lno + 1;
791 if (v_txt_auto(sp, OOBLNO, &ait, ait.ai, ntp))
795 if (v_txt_auto(sp, OOBLNO, tp, tp->cno, ntp))
801 ntp->cno = ntp->ai;
812 BINC_GOTOW(sp, ntp->lb,
813 ntp->lb_len, ntp->len + WMTSPACE + 32);
814 MEMMOVE(ntp->lb + ntp->cno, wmt.lb, WMTSPACE);
815 ntp->len += WMTSPACE;
816 ntp->cno += wmt.offset;
817 ntp->owrite = wmt.owrite;
818 ntp->insert = wmt.insert;
824 if (ntp->owrite == 0 && ntp->insert == 0) {
825 BINC_GOTOW(sp, ntp->lb, ntp->lb_len, ntp->len + 1);
827 ntp->lb[ntp->cno] = CH_CURSOR;
828 ++ntp->insert;
829 ++ntp->len;
833 tp = ntp;
998 if ((ntp =
1001 tp = ntp;
1050 if ((ntp =
1053 tp = ntp;
1149 if ((ntp =
1152 tp = ntp;
1819 TEXT *ntp;
1822 if ((ntp = TAILQ_PREV(tp, _texth, q)) == NULL) {
1830 ntp->len = ntp->sv_len;
1834 if (ntp->owrite == 0 && ntp->insert == 0) {
1835 ntp->lb[ntp->len] = CH_CURSOR;
1836 ++ntp->insert;
1837 ++ntp->len;
1847 if (vs_change(sp, ntp->lno + 1, LINE_DELETE))
1851 return (ntp);