1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-01 21:51:40 +02:00

53414: attempting to preview the "restore" keyword is nonsensical

This commit is contained in:
Frank Dana 2025-03-31 15:22:00 -07:00 committed by Bart Schaefer
parent d70b70ada6
commit b707a60351
2 changed files with 15 additions and 3 deletions

View file

@ -1,5 +1,9 @@
2025-03-31 Bart Schaefer <schaefer@zsh.org> 2025-03-31 Bart Schaefer <schaefer@zsh.org>
* Frank Dana: 53414: Functions/Prompts/prompt_restore_setup:
attempting to preview the "restore" keyword is nonsensical,
use a handler function to avoid messing up terminal output
* Frank Dana: 53413: Functions/Prompts/promptinit: "print -rP" * Frank Dana: 53413: Functions/Prompts/promptinit: "print -rP"
in preview, in case of special characters in preview, in case of special characters

View file

@ -1,3 +1,11 @@
# Damn that was easy prompt_restore_setup () {
zstyle -t :prompt-theme cleanup # Damn that was easy
zstyle -t :prompt-theme restore zstyle -t :prompt-theme cleanup
zstyle -t :prompt-theme restore
}
prompt_restore_preview () {
echo "The prompt command 'restore' is not a theme and cannot be previewed."
}
prompt_restore_setup "$@"