Lines Matching refs:argcnt
4035 vi_cmd(int argcnt, const char *cmd) in vi_cmd() argument
4042 if (argcnt == 0 && !is_zerocount(*cmd)) in vi_cmd()
4043 argcnt = 1; in vi_cmd()
4046 if ((cur = domove(argcnt, cmd, 0)) >= 0) { in vi_cmd()
4059 lastac = argcnt; in vi_cmd()
4146 if ((ncursor = domove(argcnt, &cmd[1], 1)) < 0) in vi_cmd()
4185 --argcnt > 0) in vi_cmd()
4189 if (argcnt != 0) in vi_cmd()
4198 --argcnt > 0) in vi_cmd()
4202 if (argcnt != 0) in vi_cmd()
4221 if (!argcnt) in vi_cmd()
4222 argcnt = hlast; in vi_cmd()
4225 if (!argcnt) in vi_cmd()
4226 argcnt = 1; in vi_cmd()
4228 argcnt = hlast - (source->line - argcnt); in vi_cmd()
4229 if (grabhist(modified, argcnt - 1) < 0) in vi_cmd()
4233 hnum = argcnt - 1; in vi_cmd()
4253 if (grabhist(modified, hnum + argcnt) < 0) in vi_cmd()
4257 hnum += argcnt; in vi_cmd()
4264 if (grabhist(modified, hnum - argcnt) < 0) in vi_cmd()
4268 hnum -= argcnt; in vi_cmd()
4282 if (es->cursor + argcnt > es->linelen) in vi_cmd()
4284 for (n = 0; n < argcnt; ++n) in vi_cmd()
4301 if (es->cursor + argcnt > es->linelen) in vi_cmd()
4302 argcnt = es->linelen - es->cursor; in vi_cmd()
4303 del_range(es->cursor, es->cursor + argcnt); in vi_cmd()
4308 if (!argcnt) { in vi_cmd()
4316 argcnt = source->line + 1 - in vi_cmd()
4319 if (argcnt) in vi_cmd()
4322 argcnt); in vi_cmd()
4335 if (es->cursor + argcnt > es->linelen) in vi_cmd()
4336 argcnt = es->linelen - es->cursor; in vi_cmd()
4337 yank_range(es->cursor, es->cursor + argcnt); in vi_cmd()
4338 del_range(es->cursor, es->cursor + argcnt); in vi_cmd()
4345 if (es->cursor < argcnt) in vi_cmd()
4346 argcnt = es->cursor; in vi_cmd()
4347 yank_range(es->cursor - argcnt, es->cursor); in vi_cmd()
4348 del_range(es->cursor - argcnt, es->cursor); in vi_cmd()
4349 es->cursor -= argcnt; in vi_cmd()
4400 if (argcnt >= 2) { in vi_cmd()
4402 es->cursor = argcnt - 2; in vi_cmd()
4415 if (argcnt) { in vi_cmd()
4418 while (*p && --argcnt) { in vi_cmd()
4446 argcnt++; in vi_cmd()
4450 putbuf(sp, argcnt, false) != 0) { in vi_cmd()
4466 for (i = 0; i < argcnt; i++) { in vi_cmd()
4504 complete_word(1, argcnt); in vi_cmd()
4515 complete_word(1, argcnt); in vi_cmd()
4543 domove(int argcnt, const char *cmd, int sub) in domove() argument
4552 ncursor = backword(argcnt); in domove()
4558 ncursor = Backword(argcnt); in domove()
4564 ncursor = endword(argcnt); in domove()
4572 ncursor = Endword(argcnt); in domove()
4593 if ((ncursor = findch(fsavech, argcnt, tobool(t), in domove()
4604 ncursor = es->cursor - argcnt; in domove()
4614 ncursor = es->cursor + argcnt; in domove()
4623 ncursor = forwword(argcnt); in domove()
4629 ncursor = Forwword(argcnt); in domove()
4644 ncursor = argcnt; in domove()
4859 forwword(int argcnt) in forwword() argument
4864 while (ncursor < es->linelen && argcnt--) { in forwword()
4882 backword(int argcnt) in backword() argument
4887 while (ncursor > 0 && argcnt--) { in backword()
4907 endword(int argcnt) in endword() argument
4912 while (ncursor < es->linelen && argcnt--) { in endword()
4933 Forwword(int argcnt) in Forwword() argument
4938 while (ncursor < es->linelen && argcnt--) { in Forwword()
4950 Backword(int argcnt) in Backword() argument
4955 while (ncursor > 0 && argcnt--) { in Backword()
4966 Endword(int argcnt) in Endword() argument
4971 while (ncursor < es->linelen - 1 && argcnt--) { in Endword()