Lines Matching refs:ncursor
4083 int ncursor; in vi_cmd() local
4194 if ((ncursor = domove(argcnt, &cmd[1], 1)) < 0) in vi_cmd()
4200 --ncursor; in vi_cmd()
4201 } while (ksh_isspace(vs->cbuf[ncursor])); in vi_cmd()
4202 ncursor++; in vi_cmd()
4204 if (ncursor > vs->cursor) { in vi_cmd()
4206 c2 = ncursor; in vi_cmd()
4208 c1 = ncursor; in vi_cmd()
4596 int ncursor = 0, i = 0, t; in domove() local
4603 ncursor = backword(argcnt); in domove()
4609 ncursor = Backword(argcnt); in domove()
4615 ncursor = endword(argcnt); in domove()
4616 if (sub && ncursor < vs->linelen) in domove()
4617 ncursor++; in domove()
4623 ncursor = Endword(argcnt); in domove()
4624 if (sub && ncursor < vs->linelen) in domove()
4625 ncursor++; in domove()
4643 if ((ncursor = findch(fsavech, argcnt, tobool(t), in domove()
4647 ncursor++; in domove()
4654 ncursor = vs->cursor - argcnt; in domove()
4655 if (ncursor < 0) in domove()
4656 ncursor = 0; in domove()
4664 ncursor = vs->cursor + argcnt; in domove()
4665 if (ncursor > vs->linelen) in domove()
4666 ncursor = vs->linelen; in domove()
4673 ncursor = forwword(argcnt); in domove()
4679 ncursor = Forwword(argcnt); in domove()
4683 ncursor = 0; in domove()
4687 ncursor = 0; in domove()
4688 while (ncursor < vs->linelen - 1 && in domove()
4689 ksh_isspace(vs->cbuf[ncursor])) in domove()
4690 ncursor++; in domove()
4694 ncursor = argcnt; in domove()
4695 if (ncursor > vs->linelen) in domove()
4696 ncursor = vs->linelen; in domove()
4697 if (ncursor) in domove()
4698 ncursor--; in domove()
4703 ncursor = vs->linelen; in domove()
4705 ncursor = 0; in domove()
4709 ncursor = vs->cursor; in domove()
4710 while (ncursor < vs->linelen && in domove()
4711 (i = bracktype(vs->cbuf[ncursor])) == 0) in domove()
4712 ncursor++; in domove()
4713 if (ncursor == vs->linelen) in domove()
4718 if (++ncursor >= vs->linelen) in domove()
4721 if (--ncursor < 0) in domove()
4724 t = bracktype(vs->cbuf[ncursor]); in domove()
4731 ncursor++; in domove()
4737 return (ncursor); in domove()
4883 int ncursor; in findch() local
4887 ncursor = vs->cursor; in findch()
4891 if (++ncursor == vs->linelen) in findch()
4894 if (--ncursor < 0) in findch()
4897 } while (vs->cbuf[ncursor] != ch); in findch()
4901 ncursor--; in findch()
4903 ncursor++; in findch()
4905 return (ncursor); in findch()
4911 int ncursor; in forwword() local
4913 ncursor = vs->cursor; in forwword()
4914 while (ncursor < vs->linelen && argcnt--) { in forwword()
4915 if (ksh_isalnux(vs->cbuf[ncursor])) in forwword()
4916 while (ncursor < vs->linelen && in forwword()
4917 ksh_isalnux(vs->cbuf[ncursor])) in forwword()
4918 ncursor++; in forwword()
4919 else if (!ksh_isspace(vs->cbuf[ncursor])) in forwword()
4920 while (ncursor < vs->linelen && in forwword()
4921 !ksh_isalnux(vs->cbuf[ncursor]) && in forwword()
4922 !ksh_isspace(vs->cbuf[ncursor])) in forwword()
4923 ncursor++; in forwword()
4924 while (ncursor < vs->linelen && in forwword()
4925 ksh_isspace(vs->cbuf[ncursor])) in forwword()
4926 ncursor++; in forwword()
4928 return (ncursor); in forwword()
4934 int ncursor; in backword() local
4936 ncursor = vs->cursor; in backword()
4937 while (ncursor > 0 && argcnt--) { in backword()
4938 while (--ncursor > 0 && ksh_isspace(vs->cbuf[ncursor])) in backword()
4940 if (ncursor > 0) { in backword()
4941 if (ksh_isalnux(vs->cbuf[ncursor])) in backword()
4942 while (--ncursor >= 0 && in backword()
4943 ksh_isalnux(vs->cbuf[ncursor])) in backword()
4946 while (--ncursor >= 0 && in backword()
4947 !ksh_isalnux(vs->cbuf[ncursor]) && in backword()
4948 !ksh_isspace(vs->cbuf[ncursor])) in backword()
4950 ncursor++; in backword()
4953 return (ncursor); in backword()
4959 int ncursor; in endword() local
4961 ncursor = vs->cursor; in endword()
4962 while (ncursor < vs->linelen && argcnt--) { in endword()
4963 while (++ncursor < vs->linelen - 1 && in endword()
4964 ksh_isspace(vs->cbuf[ncursor])) in endword()
4966 if (ncursor < vs->linelen - 1) { in endword()
4967 if (ksh_isalnux(vs->cbuf[ncursor])) in endword()
4968 while (++ncursor < vs->linelen && in endword()
4969 ksh_isalnux(vs->cbuf[ncursor])) in endword()
4972 while (++ncursor < vs->linelen && in endword()
4973 !ksh_isalnux(vs->cbuf[ncursor]) && in endword()
4974 !ksh_isspace(vs->cbuf[ncursor])) in endword()
4976 ncursor--; in endword()
4979 return (ncursor); in endword()
4985 int ncursor; in Forwword() local
4987 ncursor = vs->cursor; in Forwword()
4988 while (ncursor < vs->linelen && argcnt--) { in Forwword()
4989 while (ncursor < vs->linelen && in Forwword()
4990 !ksh_isspace(vs->cbuf[ncursor])) in Forwword()
4991 ncursor++; in Forwword()
4992 while (ncursor < vs->linelen && in Forwword()
4993 ksh_isspace(vs->cbuf[ncursor])) in Forwword()
4994 ncursor++; in Forwword()
4996 return (ncursor); in Forwword()
5002 int ncursor; in Backword() local
5004 ncursor = vs->cursor; in Backword()
5005 while (ncursor > 0 && argcnt--) { in Backword()
5006 while (--ncursor >= 0 && ksh_isspace(vs->cbuf[ncursor])) in Backword()
5008 while (ncursor >= 0 && !ksh_isspace(vs->cbuf[ncursor])) in Backword()
5009 ncursor--; in Backword()
5010 ncursor++; in Backword()
5012 return (ncursor); in Backword()
5018 int ncursor; in Endword() local
5020 ncursor = vs->cursor; in Endword()
5021 while (ncursor < vs->linelen - 1 && argcnt--) { in Endword()
5022 while (++ncursor < vs->linelen - 1 && in Endword()
5023 ksh_isspace(vs->cbuf[ncursor])) in Endword()
5025 if (ncursor < vs->linelen - 1) { in Endword()
5026 while (++ncursor < vs->linelen && in Endword()
5027 !ksh_isspace(vs->cbuf[ncursor])) in Endword()
5029 ncursor--; in Endword()
5032 return (ncursor); in Endword()