diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-07-05 19:55:29 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-07-05 19:55:29 +0000 |
commit | 5527851061a83ae0eac78f94fc62c03c01a31af9 (patch) | |
tree | a7d87817d34517e233d29e7a0165828013305965 /Src | |
parent | 1a9386290b36ea4d500092f7f5b6a08367ec4886 (diff) | |
download | zsh-5527851061a83ae0eac78f94fc62c03c01a31af9.tar.gz zsh-5527851061a83ae0eac78f94fc62c03c01a31af9.tar.xz zsh-5527851061a83ae0eac78f94fc62c03c01a31af9.zip |
25266: always use EXTENDED_GLOB for patterns in ZLS_COLORS
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Zle/complist.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |