diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-06-22 08:42:36 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-06-22 08:42:36 +0000 |
commit | b9a533f3823c3b6d69fad80a21f573670856823f (patch) | |
tree | eca8b47b9101c1060f41500f9fb23e679ec8f94f /Src/Zle/compctl.c | |
parent | 44b34667f844ce57b5b2eba0f2870c1ec7630348 (diff) | |
download | zsh-b9a533f3823c3b6d69fad80a21f573670856823f.tar.gz zsh-b9a533f3823c3b6d69fad80a21f573670856823f.tar.xz zsh-b9a533f3823c3b6d69fad80a21f573670856823f.zip |
allow subscripts for compadd -[ak]; new style for history completion; better list-colors handling (12029)
Diffstat (limited to 'Src/Zle/compctl.c')
-rw-r--r-- | Src/Zle/compctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c index c7356b69f..052209ee3 100644 --- a/Src/Zle/compctl.c +++ b/Src/Zle/compctl.c @@ -2268,13 +2268,14 @@ static int cdepth = 0; static int makecomplistctl(int flags) { + Heap oldheap; int ret; if (cdepth == MAX_CDEPTH) return 0; cdepth++; - SWITCHHEAPS(compheap) { + SWITCHHEAPS(oldheap, compheap) { int ooffs = offs, lip, lp; char *str = comp_str(&lip, &lp, 0), *t; char *os = cmdstr, **ow = clwords, **p, **q, qc; @@ -2333,7 +2334,7 @@ makecomplistctl(int flags) clwords = ow; clwnum = on; clwpos = op; - } SWITCHBACKHEAPS; + } SWITCHBACKHEAPS(oldheap); cdepth--; return ret; |