From 5527851061a83ae0eac78f94fc62c03c01a31af9 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sat, 5 Jul 2008 19:55:29 +0000 Subject: 25266: always use EXTENDED_GLOB for patterns in ZLS_COLORS --- Src/Zle/complist.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Src/Zle/complist.c') diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index 6e0a89a47..de4b493c7 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -1923,6 +1923,7 @@ static int complistmatches(UNUSED(Hookdef dummy), Chdata dat) { static int onlnct = -1; + static int extendedglob; Cmgroup oamatches = amatches; @@ -1945,6 +1946,8 @@ complistmatches(UNUSED(Hookdef dummy), Chdata dat) * useful outside. */ pushheap(); + extendedglob = opts[EXTENDEDGLOB]; + opts[EXTENDEDGLOB] = 1; getcols(); @@ -1958,6 +1961,7 @@ complistmatches(UNUSED(Hookdef dummy), Chdata dat) noselect = 1; amatches = oamatches; popheap(); + opts[EXTENDEDGLOB] = extendedglob; return 1; } if (inselect || mlbeg >= 0) @@ -1990,6 +1994,7 @@ complistmatches(UNUSED(Hookdef dummy), Chdata dat) if (asklist()) { amatches = oamatches; popheap(); + opts[EXTENDEDGLOB] = extendedglob; return (noselect = 1); } } @@ -2034,6 +2039,7 @@ complistmatches(UNUSED(Hookdef dummy), Chdata dat) amatches = oamatches; popheap(); + opts[EXTENDEDGLOB] = extendedglob; return noselect; } -- cgit 1.4.1