Mercurial > vim
diff src/usercmd.c @ 27018:268f6a3511df v8.2.4038
patch 8.2.4038: various code not used when features are disabled
Commit: https://github.com/vim/vim/commit/748b308eebe8d8860888eb27da08333f175d547d
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Sat Jan 8 12:41:16 2022 +0000
patch 8.2.4038: various code not used when features are disabled
Problem: Various code not used when features are disabled.
Solution: Add #ifdefs. (Dominique Pell?, closes https://github.com/vim/vim/issues/9491)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 08 Jan 2022 13:45:04 +0100 |
parents | 79ea140936e9 |
children | eebbcc83fb75 |
line wrap: on
line diff
--- a/src/usercmd.c +++ b/src/usercmd.c @@ -319,6 +319,7 @@ get_user_commands(expand_T *xp UNUSED, i 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 cmdid } 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 UNUSE 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 return EXPAND_NOTHING; } +#endif /* * List user commands starting with "name[name_len]".