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
Showing with 6 additions and 2 deletions
+6 -2
...@@ -164,8 +164,12 @@ zle -N history-substring-search-up ...@@ -164,8 +164,12 @@ zle -N history-substring-search-up
zle -N history-substring-search-down zle -N history-substring-search-down
zmodload zsh/terminfo zmodload zsh/terminfo
bindkey "$terminfo[kcuu1]" history-substring-search-up if [[ -n "$terminfo[kcuu1]" ]]; then
bindkey "$terminfo[kcud1]" history-substring-search-down bindkey "$terminfo[kcuu1]" history-substring-search-up
fi
if [[ -n "$terminfo[kcud1]" ]]; then
bindkey "$terminfo[kcud1]" history-substring-search-down
fi
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# implementation details # 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