aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorMatthew Hoener <matthewh@ca.ibm.com>2018-02-08 01:56:48 +0300
committerMatthew Hoener <matthewh@ca.ibm.com>2018-02-08 01:56:48 +0300
commitc69d21016caa712481f3738a62ba2722d5583047 (patch)
treec524f8d6ce45a9bb758ca5cebfde2447e716f2c5 /powerlevel9k.zsh-theme
parentafb7387abec505fb6565d31481c5f5ed724c2f08 (diff)
Fix vi mode plugin
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme7
1 files changed, 7 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 14d7bd81..15a0b68a 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -1522,6 +1522,11 @@ NEWLINE='
[[ $POWERLEVEL9K_PROMPT_ADD_NEWLINE == true ]] && PROMPT="$NEWLINE$PROMPT"
}
+zle-keymap-select () {
+ zle reset-prompt
+ zle -R
+}
+
prompt_powerlevel9k_setup() {
# The value below was set to better support 32-bit CPUs.
# It's the maximum _signed_ integer value on 32-bit CPUs.
@@ -1590,6 +1595,8 @@ prompt_powerlevel9k_setup() {
# prepare prompts
add-zsh-hook precmd powerlevel9k_prepare_prompts
add-zsh-hook preexec powerlevel9k_preexec
+
+ zle -N zle-keymap-select
}
prompt_powerlevel9k_teardown() {