summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Functions/Prompts/promptinit2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a37a0f2ed..8668a7af5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-03-31 Bart Schaefer <schaefer@zsh.org>
+
+ * Frank Dana: 53413: Functions/Prompts/promptinit: "print -rP"
+ in preview, in case of special characters
+
2025-03-03 Oliver Kiddle <opk@zsh.org>
* 53399: Src/Zle/zle_keymap.c, Src/builtin.c, Src/init.c,
diff --git a/Functions/Prompts/promptinit b/Functions/Prompts/promptinit
index 0c06699e8..7383c6c68 100644
--- a/Functions/Prompts/promptinit
+++ b/Functions/Prompts/promptinit
@@ -246,7 +246,7 @@ prompt_preview_theme () {
# while the ZLE is not active.
[[ -o promptcr ]] && print -n $'\r'
- :; print -P -- "${PS1}command arg1 arg2 ... argn"
+ :; print -rP -- "${PS1}command arg1 arg2 ... argn"
[[ -n ${preexec_functions[(r)prompt_${1}_preexec]} ]] &&
prompt_${1}_preexec