Lines Matching refs:npos
339 int len, pos, npos, off;
384 npos = pos + 4;
385 if (npos > len)
386 npos = len;
387 if (npos - off > maxx)
388 off = npos - maxx;
390 npos = len - off;
391 if (npos > maxx)
392 npos = maxx;
393 mvwaddnstr(msg_win, txt_y, txt_x, ibuf + off, npos);
434 npos = pos;
435 while (npos > 0 && isspace((unsigned char)ibuf[npos - 1]))
436 npos--;
437 while (npos > 0 && !isspace((unsigned char)ibuf[npos - 1]))
438 npos--;
439 memmove(ibuf + npos, ibuf + pos, len - pos);
440 len -= pos - npos;
441 pos = npos;