mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-10-03 16:33:47 +02:00
history-substring-search: bindkey now checks if terminfo is available first.
This commit is contained in:
1 parent
c563fe95fb
commit
5303793ef1
1 file changed
+4
@@ -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
|
||||||
|
if [[ -n "$terminfo[kcuu1]" ]]; then
|
||||||
bindkey "$terminfo[kcuu1]" history-substring-search-up
|
bindkey "$terminfo[kcuu1]" history-substring-search-up
|
||||||
|
fi
|
||||||
|
if [[ -n "$terminfo[kcud1]" ]]; then
|
||||||
bindkey "$terminfo[kcud1]" history-substring-search-down
|
bindkey "$terminfo[kcud1]" history-substring-search-down
|
||||||
|
fi
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# implementation details
|
# implementation details
|
||||||
|
|||||||
Reference in new issue
Block a user