Commit 5303793e authored by Florian Franzen's avatar Florian Franzen
Browse files

history-substring-search: bindkey now checks if terminfo is available first.

parent c563fe95
......@@ -164,8 +164,12 @@ zle -N history-substring-search-up
zle -N history-substring-search-down
zmodload zsh/terminfo
bindkey "$terminfo[kcuu1]" history-substring-search-up
bindkey "$terminfo[kcud1]" history-substring-search-down
if [[ -n "$terminfo[kcuu1]" ]]; then
bindkey "$terminfo[kcuu1]" history-substring-search-up
fi
if [[ -n "$terminfo[kcud1]" ]]; then
bindkey "$terminfo[kcud1]" history-substring-search-down
fi
#-----------------------------------------------------------------------------
# implementation details
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment