about summary refs log tree commit diff
path: root/Src/Zle/compmatch.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-11-18 10:07:31 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-11-18 10:07:31 +0000
commit14231691e15744c0aac39224e9aa0d84835313fe (patch)
tree27682b81236d64e641f4bb476ff710dc84e968c4 /Src/Zle/compmatch.c
parent0d0e497c693939633fda6cfa0c3269258b8e97ec (diff)
downloadzsh-14231691e15744c0aac39224e9aa0d84835313fe.tar.gz
zsh-14231691e15744c0aac39224e9aa0d84835313fe.tar.xz
zsh-14231691e15744c0aac39224e9aa0d84835313fe.zip
26061: fix clash between process subst and numeric glob
26062: additional compmatch change, missed from 26047
Diffstat (limited to 'Src/Zle/compmatch.c')
-rw-r--r--Src/Zle/compmatch.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c
index 77dc5958d..c4523ae47 100644
--- a/Src/Zle/compmatch.c
+++ b/Src/Zle/compmatch.c
@@ -1812,7 +1812,6 @@ bld_line(Cmatcher mp, ZLE_STRING_T line, char *mword, char *word,
     /* we now reuse mp, lpat, wpat for the global matchers */
     MB_METACHARINIT();
     while (llen && wlen) {
-	convchar_t wchr;
 	int wmtp;
 	convchar_t *wp;
 	Cpattern tmpgenpat;
@@ -1835,7 +1834,7 @@ bld_line(Cmatcher mp, ZLE_STRING_T line, char *mword, char *word,
 	    if (curgenpat->tp == CPAT_CHAR)
 		lchr = curgenpat->u.chr;
 	    else
-		lchr = wchr;
+		lchr = *wp;
 
 	    if (sfx)
 		*--line = lchr;