mirror of
https://git.code.sf.net/p/zsh/code
synced 2026-04-18 06:53:35 -04:00
53414: attempting to preview the "restore" keyword is nonsensical
This commit is contained in:
committed by
Bart Schaefer
parent
d70b70ada6
commit
b707a60351
@@ -1,5 +1,9 @@
|
||||
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"
|
||||
in preview, in case of special characters
|
||||
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
# Damn that was easy
|
||||
zstyle -t :prompt-theme cleanup
|
||||
zstyle -t :prompt-theme restore
|
||||
prompt_restore_setup () {
|
||||
# Damn that was easy
|
||||
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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user