diff options
author | Frank Dana <ferdnyc@gmail.com> | 2025-03-31 15:17:42 -0700 |
---|---|---|
committer | Bart Schaefer <schaefer@zsh.org> | 2025-03-31 15:17:42 -0700 |
commit | d70b70ada6b84602dd7793e0416378d3b4d0a8ad (patch) | |
tree | 9765d75dde80e526a34412cdff628960772d63fa /Functions | |
parent | 435cb1b748ce1f2f5c38edc1d64f4ee2424f9b3a (diff) | |
download | zsh-d70b70ada6b84602dd7793e0416378d3b4d0a8ad.tar.gz zsh-d70b70ada6b84602dd7793e0416378d3b4d0a8ad.zip |
53413: "print -rP" in preview, in case of special characters
Diffstat (limited to 'Functions')
-rw-r--r-- | Functions/Prompts/promptinit | 2 |
1 files changed, 1 insertions, 1 deletions
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 |