Lines Matching refs:lb

306 			BINC_RETW(sp, tp->lb, tp->lb_len, len);
307 MEMMOVE(tp->lb, lp, len);
372 tp->lb[tp->cno++] = prompt;
388 tp->lb[tp->cno] = CH_CURSOR;
752 for (p = tp->lb + tp->cno; owrite > 0 && isblank(*p);
758 p = tp->lb + tp->cno + owrite;
793 FREE_SPACEW(sp, ait.lb, ait.lb_len);
812 BINC_GOTOW(sp, ntp->lb,
814 MEMMOVE(ntp->lb + ntp->cno, wmt.lb, WMTSPACE);
825 BINC_GOTOW(sp, ntp->lb, ntp->lb_len, ntp->len + 1);
827 ntp->lb[ntp->cno] = CH_CURSOR;
897 MEMMOVE(tp->lb + tp->cno,
898 tp->lb + tp->cno + tp->owrite, tp->insert);
915 BINC_GOTOW(sp, tp->lb, tp->lb_len, tp->len + 1);
916 tp->lb[tp->len] = '\0';
957 ait.lb = NULL;
959 BINC_GOTOW(sp, ait.lb, ait.lb_len, tp->ai);
960 MEMMOVE(ait.lb, tp->lb, tp->ai);
971 leftmargin: tp->lb[tp->cno - 1] = ' ';
1026 tp->lb[tp->cno] = ' ';
1081 while (tp->cno > max && ISBLANK(tp->lb[tp->cno - 1])) {
1110 if (ISBLANK(tp->lb[tp->cno - 1]))
1115 tp->lb[tp->cno] = ' ';
1122 tp->lb[tp->cno] = ' ';
1125 tmp = inword(tp->lb[tp->cno - 1]);
1127 if (tmp != inword(tp->lb[tp->cno - 1])
1128 || ISBLANK(tp->lb[tp->cno - 1]))
1133 tp->lb[tp->cno] = ' ';
1184 tp->lb[--tp->cno] = ' ';
1359 BINC_GOTOW(sp, tp->lb, tp->lb_len, tp->len + 1);
1362 tp->lb[tp->cno] = CH_CURSOR;
1508 p = tp->lb + off;
1617 MEMMOVE(tp->lb + tp->cno + qp->olen,
1618 tp->lb + tp->cno + tp->owrite + len, tp->insert);
1645 for (off = tp->cno - 1, p = tp->lb + off, len = 0;; --p, --off) {
1712 for (p = tp->lb, scno = 0, len = tp->len,
1739 old = p - tp->lb;
1751 for (p = tp->lb; tabs--;)
1784 t = aitp->lb;
1796 BINC_RETW(sp, tp->lb, tp->lb_len, tp->len + nlen);
1800 MEMMOVE(tp->lb + nlen, tp->lb, tp->len);
1804 MEMMOVE(tp->lb, t, nlen);
1835 ntp->lb[ntp->len] = CH_CURSOR;
1918 current += tp->lb[cno] == '\t' ?
1919 COL_OFF(current, ts) : KEY_COL(sp, tp->lb[cno]);
1945 (tp->lb[tp->cno - 1] == ' ' || tp->lb[tp->cno - 1] == '\t');
1948 current += tp->lb[cno] == '\t' ?
1949 COL_OFF(current, ts) : KEY_COL(sp, tp->lb[cno]);
2013 p = tp->lb;
2018 off = MAX(tp->ai, tp->offset), ap = tp->lb + off, p = ap;
2103 off = p - tp->lb;
2104 BINC_RETW(sp, tp->lb, tp->lb_len, tp->len + nlen);
2105 p = tp->lb + off;
2129 off = p - tp->lb;
2130 BINC_RETW(sp, tp->lb, tp->lb_len, tp->len + 1);
2131 p = tp->lb + off;
2281 if (tp->lb[cno] == '\t')
2282 (void)vs_columns(sp, tp->lb, tp->lno, &cno, &olen);
2284 olen = KEY_COL(sp, tp->lb[cno]);
2292 BINC_RETW(sp, tp->lb, tp->lb_len, tp->len + olen);
2295 MEMMOVE(tp->lb + cno + 1 + chlen,
2296 tp->lb + cno + 1, tp->insert);
2300 p = tp->lb + cno;
2301 if (tp->lb[cno] == '\t' ||
2302 KEY_NEEDSWIDE(sp, tp->lb[cno]))
2307 KEY_NAME(sp, tp->lb[cno]),
2311 tp->lb[cno] = ch;
2365 savec = tp->lb[tp->cno];
2366 tp->lb[tp->cno] = 0;
2369 for (off = tp->cno - 1, p = tp->lb + off, len = 0;; --p, --off, ++len) {
2387 nothex: tp->lb[tp->cno] = savec;
2392 tp->lb[tp->cno] = savec;
2397 tp->lb[tp->cno - 1] = value;
2401 MEMMOVE(tp->lb + tp->cno, tp->lb + tp->cno + len,
2406 MEMMOVE(tp->lb + tp->cno + tp->owrite,
2407 tp->lb + tp->cno + tp->owrite + len,
2447 tp->lb[tp->cno++] = *chp;
2459 savech = tp->lb[cno];
2460 tp->lb[cno] = '\t';
2461 (void)vs_columns(sp, tp->lb, tp->lno, &cno, &nlen);
2462 tp->lb[cno] = savech;
2475 if (tp->lb[cno] == '\t')
2477 tp->lb, tp->lno, &cno, &olen);
2479 olen = KEY_COL(sp, tp->lb[cno]);
2490 tp->lb, tp->lb_len, tp->len + olen);
2492 MEMMOVE(tp->lb + cno + 1 + chlen,
2493 tp->lb + cno + 1,
2498 if (tp->lb[cno] == '\t' ||
2499 KEY_NEEDSWIDE(sp, tp->lb[cno]))
2500 for (p = tp->lb + cno + 1; chlen--;)
2504 KEY_NAME(sp, tp->lb[cno]) + nlen,
2505 p = tp->lb + cno + 1; chlen--;)
2518 MEMMOVE(tp->lb + cno, tp->lb + cno + copydown,
2523 tp->lb[tp->cno++] = *chp;
2529 BINC_RETW(sp, tp->lb, tp->lb_len, tp->len + 1);
2534 tp->lb[tp->cno + 1] = tp->lb[tp->cno];
2536 MEMMOVE(tp->lb + tp->cno + 1,
2537 tp->lb + tp->cno, tp->owrite + tp->insert);
2539 tp->lb[tp->cno++] = *chp;
2573 if (tp->lb[tp->cno - 1] == '\\' &&
2574 (tp->cno == 2 || tp->lb[tp->cno - 2] != '\\'))
2581 if (IS_SHELLMETA(sp, tp->lb[tp->cno - 1]) &&
2582 (tp->cno == 2 || tp->lb[tp->cno - 2] != '\\'))
2592 if (tp->lb[0] == tp->lb[tp->cno - 1] &&
2593 (tp->cno == 2 || tp->lb[tp->cno - 2] != '\\')) {
2624 if (tp->lb[0] == '/' ?
2626 &start, &vp->m_final, tp->lb + 1, tp->cno - 1, NULL, sf) :
2628 &start, &vp->m_final, tp->lb + 1, tp->cno - 1, NULL, sf)) {
2689 if (db_set(sp, tp->lno, tp->lb, tp->len) ||
2698 if (db_append(sp, 0, lno, tp->lb, tp->len) ||
2796 for (off = tp->cno - 1, p = tp->lb + off, len = 0;; --off, --p, ++len) {
2828 wmtp->lb = p + 1;
2907 MEMCPY(tp->lb + tp->cno, p + input_len, retain);