Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
Removing zle-* overrides, appear fixed in new ZSH.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhilburn committed Aug 31, 2016
1 parent 02cc43f commit 520eed1
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions powerlevel9k.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -1029,30 +1029,6 @@ $(print_icon 'MULTILINE_SECOND_PROMPT_PREFIX')"
fi
}

function zle-line-init {
powerlevel9k_prepare_prompts
if (( ${+terminfo[smkx]} )); then
printf '%s' ${terminfo[smkx]}
fi
zle reset-prompt
zle -R
}

function zle-line-finish {
powerlevel9k_prepare_prompts
if (( ${+terminfo[rmkx]} )); then
printf '%s' ${terminfo[rmkx]}
fi
zle reset-prompt
zle -R
}

function zle-keymap-select {
powerlevel9k_prepare_prompts
zle reset-prompt
zle -R
}

powerlevel9k_init() {
# Display a warning if the terminal does not support 256 colors
local term_colors
Expand Down Expand Up @@ -1096,10 +1072,6 @@ powerlevel9k_init() {

# prepare prompts
add-zsh-hook precmd powerlevel9k_prepare_prompts

zle -N zle-line-init
zle -N zle-line-finish
zle -N zle-keymap-select
}

powerlevel9k_init "$@"
Expand Down

0 comments on commit 520eed1

Please sign in to comment.