From 8b67c36d929c2661a1f4e28ff137c7ddd53ec33d Mon Sep 17 00:00:00 2001 From: Arseny Maslennikov Date: Mon, 22 Feb 2021 20:29:55 -0800 Subject: 48094: apply cleanup commands of the current theme on any theme change * Rename zstyle `cleanup' on the context `:prompt-theme' to `restore' everywhere but in prompt_cleanup(). It is only used as a restore mechanism now. * Ensure prompt_cleanup() continues to store its command list in the `cleanup' style. * Clean up before theme switch at the end of set_prompt(). * Prepend every use of prompt_*_setup (which might modify the shell state in ways that require cleanup) with a cleanup run. * Adjust `prompt restore' to do both parts of the newly split restore mechanism, cleanup first. --- ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index cee131eda..7e96cfadf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2021-02-22 Bart Schaefer + + * 48094: Arseny Maslennikov: Functions/Prompts/prompt_restore_setup, + Functions/Prompts/promptinit: apply cleanup commands of the current + theme on any theme change, including "prompt -[hp] $theme" + 2021-02-19 dana * 47867: Arseny Maslennikov: Functions/Prompts/promptinit: Fix -- cgit 1.4.1