diff options
author | Dominique Pelle <dominique.pelle@gmail.com> | 2022-01-08 12:41:16 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-08 12:41:16 +0000 |
commit | 748b308eebe8d8860888eb27da08333f175d547d (patch) | |
tree | dcb524e3faab88b0238bd892cdfa2870252c7e51 /src/usercmd.c | |
parent | 370791465e745354d66696de8cbd15504cf958c0 (diff) | |
download | vim-git-748b308eebe8d8860888eb27da08333f175d547d.tar.gz |
patch 8.2.4038: various code not used when features are disabledv8.2.4038
Problem: Various code not used when features are disabled.
Solution: Add #ifdefs. (Dominique Pellé, closes #9491)
Diffstat (limited to 'src/usercmd.c')
-rw-r--r-- | src/usercmd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/usercmd.c b/src/usercmd.c index 135752d11..de985f8a2 100644 --- a/src/usercmd.c +++ b/src/usercmd.c @@ -319,6 +319,7 @@ get_user_commands(expand_T *xp UNUSED, int idx) return NULL; } +#ifdef FEAT_EVAL /* * Get the name of user command "idx". "cmdidx" can be CMD_USER or * CMD_USER_BUF. @@ -343,6 +344,7 @@ get_user_command_name(int idx, int cmdidx) } return NULL; } +#endif /* * Function given to ExpandGeneric() to obtain the list of user address type @@ -394,6 +396,7 @@ get_user_cmd_complete(expand_T *xp UNUSED, int idx) return (char_u *)command_complete[idx].name; } +#ifdef FEAT_EVAL int cmdcomplete_str_to_type(char_u *complete_str) { @@ -405,6 +408,7 @@ cmdcomplete_str_to_type(char_u *complete_str) return EXPAND_NOTHING; } +#endif /* * List user commands starting with "name[name_len]". |