diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-04-27 19:30:39 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-05-03 01:27:36 +0000 |
commit | 4d2bcf2fe7637b641ccde31a8ca7c4875f0699c1 (patch) | |
tree | 736b16476096638c74367c7170c8700af435ea9a /Src/Zle/compcore.c | |
parent | d800c3850772d0bf7ae433938e9166315cf39f6d (diff) | |
download | zsh-4d2bcf2fe7637b641ccde31a8ca7c4875f0699c1.tar.gz zsh-4d2bcf2fe7637b641ccde31a8ca7c4875f0699c1.tar.xz zsh-4d2bcf2fe7637b641ccde31a8ca7c4875f0699c1.zip |
45729: internal: Add a second parameter to zlinklist2array(), analogously to hlinklist2array().
Will be used in the next commit.
Diffstat (limited to 'Src/Zle/compcore.c')
-rw-r--r-- | Src/Zle/compcore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index 7e3badc57..958fef8e7 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -648,7 +648,7 @@ callcompfunc(char *s, char *fn) if (compredirs) freearray(compredirs); if (rdstrs) - compredirs = zlinklist2array(rdstrs); + compredirs = zlinklist2array(rdstrs, 1); else compredirs = (char **) zshcalloc(sizeof(char *)); @@ -1922,7 +1922,7 @@ set_comp_sep(void) mod_export void set_list_array(char *name, LinkList l) { - setaparam(name, zlinklist2array(l)); + setaparam(name, zlinklist2array(l, 1)); } /* Get the words from a variable or a (list of words). */ |