diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-07-25 12:18:23 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-07-25 12:18:23 +0000 |
commit | c83d16f8ee5721de1da3e8449c30a31ca1372d28 (patch) | |
tree | af5c704f6d02ad081058ff0428abedbe180dbabf /Src/Zle | |
parent | e1708022d206dfe183bbce3d03c7e5e02abc3a59 (diff) | |
download | zsh-c83d16f8ee5721de1da3e8449c30a31ca1372d28.tar.gz zsh-c83d16f8ee5721de1da3e8449c30a31ca1372d28.tar.xz zsh-c83d16f8ee5721de1da3e8449c30a31ca1372d28.zip |
another fix for 15477 (separator strings); add list-separator style (15484)
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/computil.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 902bb123c..a0f7603e2 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -504,11 +504,12 @@ cd_get(char **params) case CRT_DESC: { VARARR(char, buf, - cd_state.pre + cd_state.suf + cd_state.slen + 1); + cd_state.pre + cd_state.suf + cd_state.slen + 3); char *sufp = NULL; - memcpy(buf + cd_state.pre, cd_state.sep, cd_state.slen); - sufp = buf + cd_state.pre + cd_state.slen; + memcpy(buf + cd_state.pre + 2, cd_state.sep, cd_state.slen); + buf[cd_state.pre] = buf[cd_state.pre + 1] = ' '; + sufp = buf + cd_state.pre + cd_state.slen + 2; mats = mp = (char **) zalloc((run->count + 1) * sizeof(char *)); dpys = dp = (char **) zalloc((run->count + 1) * sizeof(char *)); |