1
0
Fork 0
mirror of synced 2024-11-22 15:25:34 -05:00

[history-substring-search] Verify terminfo before bindkey

Closes #341
This commit is contained in:
Grant Guthrie 2019-09-25 14:42:51 -04:00 committed by Eric Nielsen
parent b180b40b27
commit d19c8dde68

View file

@ -11,5 +11,7 @@ bindkey '^[[B' history-substring-search-down
# Bind up and down keys # Bind up and down keys
zmodload -F zsh/terminfo +p:terminfo zmodload -F zsh/terminfo +p:terminfo
bindkey "${terminfo[kcuu1]}" history-substring-search-up if [[ -n ${terminfo[kcuu1]} && -n ${terminfo[kcud1]} ]]; then
bindkey "${terminfo[kcud1]}" history-substring-search-down bindkey ${terminfo[kcuu1]} history-substring-search-up
bindkey ${terminfo[kcud1]} history-substring-search-down
fi