diff --git a/README.md b/README.md index ab39c49..9de5c8d 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,8 @@ This prompt has been tested on numerous Linux and BSD distributions, as well as
Here are the latest features and updates. +- v3.10.2 + + The unload function now works without any error messages on ZSH earlier than v5.3.0. - v3.10.1 + The prompt now supports `promptinit`'s `prompt_cleanup` function. - v3.10.0 diff --git a/agkozak-zsh-prompt.plugin.zsh b/agkozak-zsh-prompt.plugin.zsh index 0562d79..aaae622 100644 --- a/agkozak-zsh-prompt.plugin.zsh +++ b/agkozak-zsh-prompt.plugin.zsh @@ -1105,7 +1105,8 @@ agkozak-zsh-prompt_plugin_unload() { if is-at-least 5.3; then add-zle-hook-widget -D zle-keymap-select _agkozak_zle-keymap-select else - zle -D _agkozak_zle-keymap_select + # TODO: Make sure this is the right thing to do. + zle -N zle-keymap-select fi for x in ${=AGKOZAK[FUNCTIONS]}; do