diff options
author | Lewis Russell <lewis6991@gmail.com> | 2022-10-14 09:53:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-14 09:53:15 +0100 |
commit | 9931db2e3fa43ed02e1b0bc6f167ed5398fa6369 (patch) | |
tree | b29a3b9d45b0700da10be86c0237510a2a2f2cde /src/nvim/cmdexpand.c | |
parent | d339b4aad7461937e1e03ac0836b2eb1354ff442 (diff) | |
parent | 7f11dfdef880ee98e4f18f046f21e285157d10ac (diff) | |
download | rneovim-9931db2e3fa43ed02e1b0bc6f167ed5398fa6369.tar.gz rneovim-9931db2e3fa43ed02e1b0bc6f167ed5398fa6369.tar.bz2 rneovim-9931db2e3fa43ed02e1b0bc6f167ed5398fa6369.zip |
Merge pull request #20545 from lewis6991/remove_cscope
Diffstat (limited to 'src/nvim/cmdexpand.c')
-rw-r--r-- | src/nvim/cmdexpand.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/nvim/cmdexpand.c b/src/nvim/cmdexpand.c index a29d022606..e728bd6967 100644 --- a/src/nvim/cmdexpand.c +++ b/src/nvim/cmdexpand.c @@ -22,7 +22,6 @@ #include "nvim/getchar.h" #include "nvim/help.h" #include "nvim/highlight_group.h" -#include "nvim/if_cscope.h" #include "nvim/locale.h" #include "nvim/lua/executor.h" #include "nvim/mapping.h" @@ -1419,11 +1418,6 @@ static const char *set_context_by_cmdname(const char *cmd, cmdidx_T cmdidx, cons case CMD_highlight: set_context_in_highlight_cmd(xp, arg); break; - case CMD_cscope: - case CMD_lcscope: - case CMD_scscope: - set_context_in_cscope_cmd(xp, arg, cmdidx); - break; case CMD_sign: set_context_in_sign_cmd(xp, (char *)arg); break; @@ -2063,7 +2057,6 @@ static int ExpandOther(expand_T *xp, regmatch_T *rmp, int *num_file, char ***fil { EXPAND_HIGHLIGHT, (ExpandFunc)get_highlight_name, true, false }, { EXPAND_EVENTS, expand_get_event_name, true, false }, { EXPAND_AUGROUP, expand_get_augroup_name, true, false }, - { EXPAND_CSCOPE, get_cscope_name, true, true }, { EXPAND_SIGN, get_sign_name, true, true }, { EXPAND_PROFILE, get_profile_name, true, true }, #ifdef HAVE_WORKING_LIBINTL @@ -2883,11 +2876,6 @@ void f_getcompletion(typval_T *argvars, typval_T *rettv, EvalFuncData fptr) xpc.xp_pattern_len = strlen(xpc.xp_pattern); } - if (xpc.xp_context == EXPAND_CSCOPE) { - set_context_in_cscope_cmd(&xpc, (const char *)xpc.xp_pattern, CMD_cscope); - xpc.xp_pattern_len = strlen(xpc.xp_pattern); - } - if (xpc.xp_context == EXPAND_SIGN) { set_context_in_sign_cmd(&xpc, xpc.xp_pattern); xpc.xp_pattern_len = strlen(xpc.xp_pattern); |