diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-05-12 13:50:42 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-05-12 13:50:42 +0000 |
commit | bd70d684fcf40ff1fba07ec69bd08e1ce40cbd2f (patch) | |
tree | 3392bb954086841c7351e06b45e82594342f4e31 /Src/builtin.c | |
parent | 58580d31f593021e2ed4bfad8362e3b01bf396f3 (diff) | |
download | zsh-bd70d684fcf40ff1fba07ec69bd08e1ce40cbd2f.tar.gz zsh-bd70d684fcf40ff1fba07ec69bd08e1ce40cbd2f.tar.xz zsh-bd70d684fcf40ff1fba07ec69bd08e1ce40cbd2f.zip |
25002: only ZLE should update attributes resulting from prompt expansion
Diffstat (limited to 'Src/builtin.c')
-rw-r--r-- | Src/builtin.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index d28d9fffd..f11d5aa51 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -3571,8 +3571,10 @@ bin_print(char *name, char **args, Options ops, int func) * messy memory management, stick it on the heap * instead. */ - char *str = unmetafy(promptexpand(metafy(args[n], len[n], - META_NOALLOC), 0, NULL, NULL), &len[n]); + char *str = unmetafy( + promptexpand(metafy(args[n], len[n], META_NOALLOC), + 0, NULL, NULL, NULL), + &len[n]); args[n] = dupstrpfx(str, len[n]); free(str); } |