summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2009-01-29 10:23:25 +0100
committerHugues Hiegel <hugues@hiegel.fr>2009-01-29 11:03:53 +0100
commitf4b061f20155beb9715220bf38963ac169d60c4a (patch)
tree59b3cd892b7d1899fed4fbe856935fe9e05198b8
parentfb5eb62edf6f5d48d6eb54be21d5c32f95a356a6 (diff)
[PROMPT] escapes command before printing it back again
-rw-r--r--12_Prompts.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh
index 06aa711..a8c9043 100644
--- a/12_Prompts.zsh
+++ b/12_Prompts.zsh
@@ -43,7 +43,7 @@ preexec ()
local lines=$(( (${#string} - 1) / $COLUMNS))
for i in {0..$lines} ; print -Pn "\e[1A"
print -Pn "\r$PROMPT"
- print "$1"
+ print "${(q)1}"
prompt_colors[date]=$date_colors[normal]
}