mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
zinit: Improve bindmap'' handling
This commit is contained in:
parent
930ad24d0a
commit
8e8f4efdf9
|
|
@ -301,7 +301,7 @@ builtin setopt noaliases
|
|||
if (( val )) {
|
||||
[[ ${pos[1]} = "-M" ]] && pos[4]="$bmap_val" || pos[2]="$bmap_val"
|
||||
} else {
|
||||
[[ ${pos[1]} = "-M" ]] && pos[3]="$bmap_val" || pos[1]="$bmap_val"
|
||||
[[ ${pos[1]} = "-M" ]] && pos[3]="${(Q)bmap_val}" || pos[1]="${(Q)bmap_val}"
|
||||
}
|
||||
.zinit-add-report "${ZINIT[CUR_USPL2]}" ":::Bindkey: combination <$1> changed to <$bmap_val>${${(M)bmap_val:#hold}:+, i.e. ${ZINIT[col-error]}unmapped${ZINIT[col-rst]}}"
|
||||
(( 1 ))
|
||||
|
|
@ -314,7 +314,7 @@ builtin setopt noaliases
|
|||
if (( val )) {
|
||||
[[ ${pos[1]} = "-M" ]] && pos[4]="$bmap_val" || pos[2]="$bmap_val"
|
||||
} else {
|
||||
[[ ${pos[1]} = "-M" ]] && pos[3]="$bmap_val" || pos[1]="$bmap_val"
|
||||
[[ ${pos[1]} = "-M" ]] && pos[3]="${(Q)bmap_val}" || pos[1]="${(Q)bmap_val}"
|
||||
}
|
||||
.zinit-add-report "${ZINIT[CUR_USPL2]}" ":::Bindkey: combination <$1> recognized as cursor-key and changed to <${bmap_val}>${${(M)bmap_val:#hold}:+, i.e. ${ZINIT[col-error]}unmapped${ZINIT[col-rst]}}"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue