mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-22 07:11:58 +00:00
tabs to spaces
This commit is contained in:
parent
06aa8da96e
commit
38da6a3c9b
1 changed files with 10 additions and 10 deletions
|
@ -2810,22 +2810,22 @@ _p9k_wrap_zle_widget() {
|
|||
local hook=$2
|
||||
local orig=p9k-orig-$widget
|
||||
case $widgets[$widget] in
|
||||
user:*)
|
||||
zle -N $orig ${widgets[$widget]#user:}
|
||||
;;
|
||||
builtin)
|
||||
eval "_p9k_orig_${(q)widget}() { zle .${(q)widget} }"
|
||||
zle -N $orig _p9k_orig_$widget
|
||||
;;
|
||||
esac
|
||||
user:*)
|
||||
zle -N $orig ${widgets[$widget]#user:}
|
||||
;;
|
||||
builtin)
|
||||
eval "_p9k_orig_${(q)widget}() { zle .${(q)widget} }"
|
||||
zle -N $orig _p9k_orig_$widget
|
||||
;;
|
||||
esac
|
||||
|
||||
local wrapper=_p9k_wrapper_$widget_$hook
|
||||
eval "function ${(q)wrapper}() {
|
||||
${(q)hook} \"\$@\"
|
||||
(( \$+widgets[${(q)orig}] )) && zle ${(q)orig} -- \"\$@\"
|
||||
}"
|
||||
}"
|
||||
|
||||
zle -N -- $widget $wrapper
|
||||
zle -N -- $widget $wrapper
|
||||
}
|
||||
|
||||
_p9k_init() {
|
||||
|
|
Loading…
Reference in a new issue