Mercurial > vim
changeset 9493:9225961006a4 v7.4.2027
commit https://github.com/vim/vim/commit/4c06815c44dfeaafdad25dfcc40f60860096a900
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jul 11 23:15:25 2016 +0200
patch 7.4.2027
Problem: Can't build with +eval but without +menu.
Solution: Add #ifdef. (John Marriott)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 11 Jul 2016 23:30:06 +0200 |
parents | 1c2bf7ee5103 |
children | 893b92179710 |
files | src/eval.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/eval.c +++ b/src/eval.c @@ -13120,11 +13120,13 @@ f_getcompletion(typval_T *argvars, typva return; } +# if defined(FEAT_MENU) if (xpc.xp_context == EXPAND_MENUS) { set_context_in_menu_cmd(&xpc, (char_u *)"menu", xpc.xp_pattern, FALSE); xpc.xp_pattern_len = (int)STRLEN(xpc.xp_pattern); } +# endif pat = addstar(xpc.xp_pattern, xpc.xp_pattern_len, xpc.xp_context); if ((rettv_list_alloc(rettv) != FAIL) && (pat != NULL))