On 10-Jul-2016 2:50 AM, Bram Moolenaar wrote:
Patch 7.4.2011
Problem:    It is not easy to get a list of command arguments.
Solution:   Add getcompletion(). (Yegappan Lakshmanan)
Files:      runtime/doc/eval.txt, src/eval.c, src/ex_docmd.c,
             src/proto/ex_docmd.pro, src/testdir/test_cmdline.vim


This patch fails to link without FEAT_MENU, like so:
...
gobjnative/eval.o:eval.c:(.text+0x65e3): undefined reference to `set_context_in_menu_cmd'
collect2.exe: error: ld returned 1 exit status
Make_cyg_ming.mak:814: recipe for target 'gvim.exe' failed
make: *** [gvim.exe] Error 1

The attached patch makes the compiler/linker happy but I'm sure if it's the right fix.

Cheers
John

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
--- eval.c.orig	2016-07-12 05:32:06.669435100 +1000
+++ eval.c	2016-07-12 05:32:06.807567200 +1000
@@ -13120,11 +13120,13 @@
 	return;
     }
 
+#ifdef 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))

Raspunde prin e-mail lui