Lines Matching refs:cmdidx

1848 	if (ea.cmdidx == CMD_SIZE)  in do_one_cmd()
1874 if (ea.cmdidx == CMD_catch) in do_one_cmd()
1878 else if (ea.cmdidx == CMD_else || ea.cmdidx == CMD_elseif) in do_one_cmd()
1882 else if (ea.cmdidx == CMD_finally) in do_one_cmd()
1884 else if (ea.cmdidx != CMD_endif in do_one_cmd()
1885 && ea.cmdidx != CMD_endfor in do_one_cmd()
1886 && ea.cmdidx != CMD_endtry in do_one_cmd()
1887 && ea.cmdidx != CMD_endwhile) in do_one_cmd()
1928 if (!IS_USER_CMDIDX(ea.cmdidx)) in do_one_cmd()
1930 if (ea.cmdidx != CMD_SIZE) in do_one_cmd()
1931 ea.addr_type = cmdnames[(int)ea.cmdidx].cmd_addr_type; in do_one_cmd()
1936 if (ea.cmdidx == CMD_wincmd && p != NULL) in do_one_cmd()
1940 if ((ea.cmdidx == CMD_cc || ea.cmdidx == CMD_ll) && bt_quickfix(curbuf)) in do_one_cmd()
1986 ea.cmdidx = CMD_print; in do_one_cmd()
2022 if (p != NULL && ea.cmdidx == CMD_SIZE && !ea.skip in do_one_cmd()
2051 && !IS_USER_CMDIDX(ea.cmdidx)) in do_one_cmd()
2057 if (ea.cmdidx == CMD_SIZE) in do_one_cmd()
2077 ni = (!IS_USER_CMDIDX(ea.cmdidx) in do_one_cmd()
2078 && (cmdnames[ea.cmdidx].cmd_func == ex_ni in do_one_cmd()
2080 || cmdnames[ea.cmdidx].cmd_func == ex_script_ni in do_one_cmd()
2089 if (ea.cmdidx == CMD_if) in do_one_cmd()
2093 if (ea.cmdidx == CMD_endif) in do_one_cmd()
2101 if (*p == '!' && ea.cmdidx != CMD_substitute in do_one_cmd()
2102 && ea.cmdidx != CMD_smagic && ea.cmdidx != CMD_snomagic) in do_one_cmd()
2113 if (!IS_USER_CMDIDX(ea.cmdidx)) in do_one_cmd()
2114 ea.argt = (long)cmdnames[(int)ea.cmdidx].cmd_argt; in do_one_cmd()
2138 if (!IS_USER_CMDIDX(ea.cmdidx)) in do_one_cmd()
2161 && ea.cmdidx != CMD_checktime in do_one_cmd()
2162 && ea.cmdidx != CMD_edit in do_one_cmd()
2163 && ea.cmdidx != CMD_file in do_one_cmd()
2164 && !IS_USER_CMDIDX(ea.cmdidx) in do_one_cmd()
2245 if (ea.cmdidx == CMD_bang) in do_one_cmd()
2251 if (ea.cmdidx == CMD_file && *ea.arg != NUL && curbuf_locked()) in do_one_cmd()
2266 if (ea.cmdidx == CMD_write || ea.cmdidx == CMD_update) in do_one_cmd()
2278 else if (*ea.arg == '!' && ea.cmdidx == CMD_write) // :w !filter in do_one_cmd()
2285 if (ea.cmdidx == CMD_read) in do_one_cmd()
2299 if (ea.cmdidx == CMD_lshift || ea.cmdidx == CMD_rshift) in do_one_cmd()
2330 else if (ea.cmdidx == CMD_bang in do_one_cmd()
2331 || ea.cmdidx == CMD_terminal in do_one_cmd()
2332 || ea.cmdidx == CMD_global in do_one_cmd()
2333 || ea.cmdidx == CMD_vglobal in do_one_cmd()
2366 && (!IS_USER_CMDIDX(ea.cmdidx) || *ea.arg != '=') in do_one_cmd()
2377 if (valid_yank_reg(*ea.arg, (ea.cmdidx != CMD_put in do_one_cmd()
2378 && !IS_USER_CMDIDX(ea.cmdidx)))) in do_one_cmd()
2459 switch (ea.cmdidx) in do_one_cmd()
2563 && !IS_USER_CMDIDX(ea.cmdidx)) in do_one_cmd()
2570 if (ea.cmdidx == CMD_bdelete || ea.cmdidx == CMD_bwipeout in do_one_cmd()
2571 || ea.cmdidx == CMD_bunload) in do_one_cmd()
2589 if (ea.cmdidx == CMD_try && cmdmod.cmod_did_esilent > 0) in do_one_cmd()
2601 if (IS_USER_CMDIDX(ea.cmdidx)) in do_one_cmd()
2614 (cmdnames[ea.cmdidx].cmd_func)(&ea); in do_one_cmd()
2624 && ea.cmdidx != CMD_endif in do_one_cmd()
2671 (ea.cmdidx != CMD_SIZE && !IS_USER_CMDIDX(ea.cmdidx)) in do_one_cmd()
2672 ? cmdnames[(int)ea.cmdidx].cmd_name : (char_u *)NULL); in do_one_cmd()
3258 if (IS_USER_CMDIDX(eap->cmdidx)) in parse_cmd_address()
3469 eap->cmdidx = CMD_eval; in find_ex_command()
3498 eap->cmdidx = CMD_block; in find_ex_command()
3501 eap->cmdidx = CMD_eval; in find_ex_command()
3521 eap->cmdidx = CMD_eval; in find_ex_command()
3529 eap->cmdidx = CMD_var; in find_ex_command()
3563 eap->cmdidx = CMD_eval; in find_ex_command()
3568 eap->cmdidx = CMD_var; in find_ex_command()
3589 eap->cmdidx = CMD_var; in find_ex_command()
3598 eap->cmdidx = CMD_eval; in find_ex_command()
3608 eap->cmdidx = CMD_eval; in find_ex_command()
3618 eap->cmdidx = CMD_eval; in find_ex_command()
3625 eap->cmdidx = *p == '+' ? CMD_increment : CMD_decrement; in find_ex_command()
3644 eap->cmdidx = CMD_k; in find_ex_command()
3656 eap->cmdidx = CMD_substitute; in find_ex_command()
3711 eap->cmdidx = cmdidxs1[CharOrdLow(c1)]; in find_ex_command()
3713 eap->cmdidx += cmdidxs2[CharOrdLow(c1)][CharOrdLow(c2)]; in find_ex_command()
3716 eap->cmdidx = CMD_Next; in find_ex_command()
3718 eap->cmdidx = CMD_bang; in find_ex_command()
3720 for ( ; (int)eap->cmdidx < (int)CMD_SIZE; in find_ex_command()
3721 eap->cmdidx = (cmdidx_T)((int)eap->cmdidx + 1)) in find_ex_command()
3722 if (STRNCMP(cmdnames[(int)eap->cmdidx].cmd_name, (char *)eap->cmd, in find_ex_command()
3727 && cmdnames[(int)eap->cmdidx].cmd_name[len] == NUL) in find_ex_command()
3735 if (eap->cmdidx == CMD_star && vim_strchr(p_cpo, CPO_STAR) == NULL) in find_ex_command()
3740 if ((eap->cmdidx == CMD_SIZE || eap->cmdidx == CMD_Print) in find_ex_command()
3749 eap->cmdidx = CMD_SIZE; in find_ex_command()
3753 if (eap->cmdidx == CMD_final && p - eap->cmd == 4) in find_ex_command()
3754 eap->cmdidx = CMD_finally; in find_ex_command()
3757 if (eap->cmdidx < CMD_SIZE in find_ex_command()
3760 && (eap->cmdidx < 0 || in find_ex_command()
3761 (cmdnames[eap->cmdidx].cmd_argt & EX_NONWHITE_OK) == 0)) in find_ex_command()
3766 eap->cmdidx = CMD_SIZE; in find_ex_command()
3857 ea.cmdidx = (cmdidx_T)0; in cmd_exists()
3861 if (vim_isdigit(*name) && ea.cmdidx != CMD_match) in cmd_exists()
3865 return (ea.cmdidx == CMD_SIZE ? 0 : (full ? 2 : 1)); in cmd_exists()
3893 ea.cmdidx = (cmdidx_T)0; in f_fullcommand()
3896 if (p == NULL || ea.cmdidx == CMD_SIZE) in f_fullcommand()
3910 rettv->vval.v_string = vim_strsave(IS_USER_CMDIDX(ea.cmdidx) in f_fullcommand()
3911 ? get_user_command_name(ea.useridx, ea.cmdidx) in f_fullcommand()
3912 : cmdnames[ea.cmdidx].cmd_name); in f_fullcommand()
4544 + (eap->cmdidx == CMD_diffget) in invalid_range()
4640 if (*p != NUL && (eap->cmdidx == CMD_vimgrep || eap->cmdidx == CMD_lvimgrep in skip_grep_pat()
4641 || eap->cmdidx == CMD_vimgrepadd in skip_grep_pat()
4642 || eap->cmdidx == CMD_lvimgrepadd in skip_grep_pat()
4643 || grep_internal(eap->cmdidx))) in skip_grep_pat()
4669 if ((eap->cmdidx == CMD_make || eap->cmdidx == CMD_lmake in replace_makeprg()
4670 || eap->cmdidx == CMD_grep || eap->cmdidx == CMD_lgrep in replace_makeprg()
4671 || eap->cmdidx == CMD_grepadd in replace_makeprg()
4672 || eap->cmdidx == CMD_lgrepadd) in replace_makeprg()
4673 && !grep_internal(eap->cmdidx)) in replace_makeprg()
4675 if (eap->cmdidx == CMD_grep || eap->cmdidx == CMD_lgrep in replace_makeprg()
4676 || eap->cmdidx == CMD_grepadd || eap->cmdidx == CMD_lgrepadd) in replace_makeprg()
4819 && eap->cmdidx != CMD_bang in expand_filename()
4820 && eap->cmdidx != CMD_grep in expand_filename()
4821 && eap->cmdidx != CMD_grepadd in expand_filename()
4822 && eap->cmdidx != CMD_hardcopy in expand_filename()
4823 && eap->cmdidx != CMD_lgrep in expand_filename()
4824 && eap->cmdidx != CMD_lgrepadd in expand_filename()
4825 && eap->cmdidx != CMD_lmake in expand_filename()
4826 && eap->cmdidx != CMD_make in expand_filename()
4827 && eap->cmdidx != CMD_terminal in expand_filename()
4857 if ((eap->usefilter || eap->cmdidx == CMD_bang in expand_filename()
4858 || eap->cmdidx == CMD_terminal) in expand_filename()
5061 && ((eap->cmdidx != CMD_at && eap->cmdidx != CMD_star) in separate_nextcmd()
5063 && (eap->cmdidx != CMD_redir in separate_nextcmd()
5265 else if (eap->cmdidx == CMD_autocmd) in ex_autocmd()
5298 eap->cmdidx == CMD_bdelete ? DOBUF_DEL in ex_bunload()
5299 : eap->cmdidx == CMD_bwipeout ? DOBUF_WIPE in ex_bunload()
5867 int unaccept_arg0 = (eap->cmdidx == CMD_tabmove) ? 0 : 1; in get_tabpage_arg()
5949 switch (eap->cmdidx) in get_tabpage_arg()
6224 if (((eap->cmdidx == CMD_wq || curbufIsChanged()) && do_write(eap) == FAIL) in ex_exit()
6257 (eap->cmdidx == CMD_number || eap->cmdidx == CMD_pound in ex_print()
6259 eap->cmdidx == CMD_list || (eap->flags & EXFLAG_LIST)); in ex_print()
6489 int use_tab = eap->cmdidx == CMD_tabedit in ex_splitview()
6490 || eap->cmdidx == CMD_tabfind in ex_splitview()
6491 || eap->cmdidx == CMD_tabnew; in ex_splitview()
6505 if (eap->cmdidx == CMD_split) in ex_splitview()
6506 eap->cmdidx = CMD_new; in ex_splitview()
6507 if (eap->cmdidx == CMD_vsplit) in ex_splitview()
6508 eap->cmdidx = CMD_vnew; in ex_splitview()
6513 if (eap->cmdidx == CMD_sfind || eap->cmdidx == CMD_tabfind) in ex_splitview()
6527 && eap->cmdidx != CMD_vnew in ex_splitview()
6528 && eap->cmdidx != CMD_new) in ex_splitview()
6605 ea.cmdidx = CMD_tabnew; in tabpage_new()
6621 switch (eap->cmdidx) in ex_tabnext()
6851 eap->cmdidx = CMD_visual; in ex_open()
6876 if ((eap->cmdidx != CMD_pedit && ERROR_IF_POPUP_WINDOW) in do_exedit()
6882 if (exmode_active && (eap->cmdidx == CMD_visual in do_exedit()
6883 || eap->cmdidx == CMD_view)) in do_exedit()
6931 if ((eap->cmdidx == CMD_new in do_exedit()
6932 || eap->cmdidx == CMD_tabnew in do_exedit()
6933 || eap->cmdidx == CMD_tabedit in do_exedit()
6934 || eap->cmdidx == CMD_vnew) && *eap->arg == NUL) in do_exedit()
6942 else if ((eap->cmdidx != CMD_split && eap->cmdidx != CMD_vsplit) in do_exedit()
6955 if (eap->cmdidx == CMD_view || eap->cmdidx == CMD_sview) in do_exedit()
6957 else if (eap->cmdidx == CMD_enew) in do_exedit()
6960 if (eap->cmdidx != CMD_balt && eap->cmdidx != CMD_badd) in do_exedit()
6962 if (do_ecmd(0, (eap->cmdidx == CMD_enew ? NULL : eap->arg), in do_exedit()
6972 + (eap->cmdidx == CMD_badd ? ECMD_ADDBUF : 0) in do_exedit()
6973 + (eap->cmdidx == CMD_balt ? ECMD_ALTBUF : 0) in do_exedit()
7428 if (eap->cmdidx == CMD_lcd || eap->cmdidx == CMD_lchdir) in ex_cd()
7430 else if (eap->cmdidx == CMD_tcd || eap->cmdidx == CMD_tchdir) in ex_cd()
7727 if (eap->cmdidx != CMD_yank) // position cursor for undo in ex_operators()
7737 switch (eap->cmdidx) in ex_operators()
7752 (eap->cmdidx == CMD_rshift) ^ curwin->w_p_rl in ex_operators()
7754 eap->cmdidx == CMD_rshift in ex_operators()
7814 if (eap->cmdidx == CMD_move) in ex_copymove()
7848 magic_overruled = eap->cmdidx == CMD_smagic in ex_submagic()
8000 undo_time(eap->cmdidx == CMD_earlier ? -count : count, in ex_later()
8514 if (eap->cmdidx == CMD_startinsert) in ex_startinsert()
8516 else if (eap->cmdidx == CMD_startreplace) in ex_startinsert()
8523 if (eap->cmdidx == CMD_startinsert) in ex_startinsert()
8623 switch (cmdnames[eap->cmdidx].cmd_name[2]) in ex_findpat()
8626 if (cmdnames[eap->cmdidx].cmd_name[0] == 'p') in ex_findpat()
8682 ex_tag_cmd(eap, cmdnames[eap->cmdidx].cmd_name + 1); in ex_ptag()
8730 ex_tag_cmd(eap, cmdnames[eap->cmdidx].cmd_name + 1); in ex_stag()
8741 ex_tag_cmd(eap, cmdnames[eap->cmdidx].cmd_name); in ex_tag()
9457 opFoldRange(eap->line1, eap->line2, eap->cmdidx == CMD_foldopen, in ex_foldopen()
9472 if (hasFolding(lnum, NULL, NULL) == (eap->cmdidx == CMD_folddoclosed)) in ex_folddo()
9490 is_loclist_cmd(int cmdidx) in is_loclist_cmd() argument
9492 if (cmdidx < 0 || cmdidx >= CMD_SIZE) in is_loclist_cmd()
9494 return cmdnames[cmdidx].cmd_name[0] == 'l'; in is_loclist_cmd()