Lines Matching refs:cmd

522 	split_ea.cmd = (char_u *)"new";  in term_start()
578 char_u *cmd, *p; in term_start() local
582 cmd = argvar->vval.v_string; in term_start()
583 if (cmd == NULL) in term_start()
584 cmd = (char_u *)""; in term_start()
585 else if (STRCMP(cmd, "NONE") == 0) in term_start()
586 cmd = (char_u *)"pty"; in term_start()
591 || (cmd = tv_get_string_chk( in term_start()
593 cmd = (char_u*)""; in term_start()
595 len = STRLEN(cmd) + 10; in term_start()
603 vim_snprintf((char *)p, len, "!%s", cmd); in term_start()
605 vim_snprintf((char *)p, len, "!%s (%d)", cmd, i); in term_start()
650 char_u *cmd = argvar->vval.v_string; in term_start() local
652 if (cmd != NULL && STRCMP(cmd, p_sh) != 0) in term_start()
653 term->tl_command = vim_strsave(cmd); in term_start()
763 char_u *cmd; in ex_terminal() local
768 cmd = eap->arg; in ex_terminal()
769 while (*cmd == '+' && *(cmd + 1) == '+') in ex_terminal()
773 cmd += 2; in ex_terminal()
774 p = skiptowhite(cmd); in ex_terminal()
775 ep = vim_strchr(cmd, '='); in ex_terminal()
784 # define OPTARG_HAS(name) ((int)(p - cmd) == sizeof(name) - 1 \ in ex_terminal()
785 && STRNICMP(cmd, name, sizeof(name) - 1) == 0) in ex_terminal()
804 p = skiptowhite(cmd); in ex_terminal()
812 p = skiptowhite(cmd); in ex_terminal()
821 p = skiptowhite(cmd); in ex_terminal()
827 p = skiptowhite(cmd); in ex_terminal()
835 p = skiptowhite(cmd); in ex_terminal()
845 else if ((int)(p - cmd) == 4 && STRNICMP(cmd, "type", 4) == 0 in ex_terminal()
850 p = skiptowhite(cmd); in ex_terminal()
868 semsg(_("E181: Invalid attribute: %s"), cmd); in ex_terminal()
872 cmd = skipwhite(p); in ex_terminal()
874 if (*cmd == NUL) in ex_terminal()
877 tofree = cmd = vim_strsave(p_sh); in ex_terminal()
902 if (unix_build_argv(cmd, &argv, &tofree1, &tofree2) == OK) in ex_terminal()
910 long_u cmdlen = STRLEN(p_sh) + STRLEN(p_shcf) + STRLEN(cmd) + 10; in ex_terminal()
917 vim_snprintf((char *)newcmd, cmdlen, "%s %s %s", p_sh, p_shcf, cmd); in ex_terminal()
918 cmd = newcmd; in ex_terminal()
926 argvar[0].vval.v_string = cmd; in ex_terminal()
3416 char *cmd = term->tl_opencmd == NULL in term_after_channel_closed() local
3419 size_t len = strlen(cmd) + 50; in term_after_channel_closed()
3425 vim_snprintf(buf, len, cmd, fnum); in term_after_channel_closed()
4225 ea.cmd = alloc(STRLEN(p) + 12); in handle_drop_command()
4226 if (ea.cmd != NULL) in handle_drop_command()
4228 sprintf((char *)ea.cmd, "sbuf ++enc=%s", p); in handle_drop_command()
4230 tofree = ea.cmd; in handle_drop_command()
4249 if (ea.cmd == NULL) in handle_drop_command()
4250 ea.cmd = (char_u *)"split"; in handle_drop_command()
4424 char_u *cmd = tv_get_string(&item->li_tv); in parse_osc() local
4432 ch_log(channel, "Missing argument for %s", cmd); in parse_osc()
4433 else if (STRCMP(cmd, "drop") == 0) in parse_osc()
4435 else if (STRCMP(cmd, "call") == 0) in parse_osc()
4438 ch_log(channel, "Invalid command received: %s", cmd); in parse_osc()
6319 char_u *cmd; in f_term_setrestore() local
6331 cmd = tv_get_string_chk(&argvars[1]); in f_term_setrestore()
6332 if (cmd != NULL) in f_term_setrestore()
6333 term->tl_command = vim_strsave(cmd); in f_term_setrestore()
6589 char_u *cmd = NULL; in conpty_term_and_job_init() local
6604 cmd = argvar->vval.v_string; in conpty_term_and_job_init()
6610 cmd = ga_cmd.ga_data; in conpty_term_and_job_init()
6612 if (cmd == NULL || *cmd == NUL) in conpty_term_and_job_init()
6618 term->tl_arg0_cmd = vim_strsave(cmd); in conpty_term_and_job_init()
6620 cmd_wchar = enc_to_utf16(cmd, NULL); in conpty_term_and_job_init()
6678 build_argv_from_string(cmd, &job->jv_argv, &argc); in conpty_term_and_job_init()
6945 char_u *cmd = NULL; in winpty_term_and_job_init() local
6952 cmd = argvar->vval.v_string; in winpty_term_and_job_init()
6958 cmd = ga_cmd.ga_data; in winpty_term_and_job_init()
6960 if (cmd == NULL || *cmd == NUL) in winpty_term_and_job_init()
6966 term->tl_arg0_cmd = vim_strsave(cmd); in winpty_term_and_job_init()
6968 cmd_wchar = enc_to_utf16(cmd, NULL); in winpty_term_and_job_init()
7012 build_argv_from_string(cmd, &job->jv_argv, &argc); in winpty_term_and_job_init()