Makes history-substring-search use term specific up and down buttons. Fixes #2089.

This commit is contained in:
Florian Franzen 2014-02-09 14:06:58 +01:00
parent ec37c05cb3
commit c563fe95fb

View File

@ -163,8 +163,9 @@ function history-substring-search-down() {
zle -N history-substring-search-up
zle -N history-substring-search-down
bindkey '\e[A' history-substring-search-up
bindkey '\e[B' history-substring-search-down
zmodload zsh/terminfo
bindkey "$terminfo[kcuu1]" history-substring-search-up
bindkey "$terminfo[kcud1]" history-substring-search-down
#-----------------------------------------------------------------------------
# implementation details