From 5ac242f44924ab4f165326fba5f4d6bf8af29626 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 12 Apr 2000 09:12:15 +0000 Subject: comment out the code to allow $compstate[insert] to select the group (10690) --- Src/Zle/compcore.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'Src/Zle/compcore.c') diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index e40873764..e308798e7 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -60,7 +60,11 @@ int movetoend; /* The match and group number to insert when starting menucompletion. */ /**/ -mod_export int insmnum, insgnum, insgroup, insspace; +mod_export int insmnum, insspace; + +#if 0 +int insgnum, insgroup; /* mod_export */ +#endif /* Information about menucompletion. */ @@ -753,10 +757,12 @@ callcompfunc(char *s, char *fn) useline = 1; usemenu = 3; insmnum = atoi(compinsert); +#if 0 if ((m = strchr(compinsert, ':'))) { insgroup = 1; insgnum = atoi(m + 1); } +#endif insspace = (compinsert[strlen(compinsert) - 1] == ' '); } else { char *p; @@ -770,10 +776,12 @@ callcompfunc(char *s, char *fn) if (useline && (p = strchr(compinsert, ':'))) { insmnum = atoi(++p); +#if 0 if ((p = strchr(p, ':'))) { insgroup = 1; insgnum = atoi(p + 1); } +#endif } } startauto = ((compinsert && @@ -840,8 +848,12 @@ makecomplist(char *s, int incmd, int lst) mnum = 0; unambig_mnum = -1; isuf = NULL; - insmnum = insgnum = 1; - insgroup = oldlist = oldins = 0; + insmnum = 1; +#if 0 + insgnum = 1; + insgroup = 0; +#endif + oldlist = oldins = 0; begcmgroup("default", 0); menucmp = menuacc = newmatches = onlyexpl = 0; -- cgit 1.4.1