From 2df70ee5ca8432935b6c7693b733cd00f543442d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Mon, 14 Dec 2015 12:40:57 +0100 Subject: [PATCH] Bind also UP/DOWN arrow keys in history-substring-search Without it only keypad arrow keys are working --- .../history-substring-search.plugin.zsh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/history-substring-search/history-substring-search.plugin.zsh b/plugins/history-substring-search/history-substring-search.plugin.zsh index 7883a65f3..4a2aa84ce 100644 --- a/plugins/history-substring-search/history-substring-search.plugin.zsh +++ b/plugins/history-substring-search/history-substring-search.plugin.zsh @@ -19,8 +19,15 @@ if [[ -n "$terminfo[kcuu1]" ]]; then bindkey -M emacs "$terminfo[kcuu1]" history-substring-search-up bindkey -M viins "$terminfo[kcuu1]" history-substring-search-up fi +if [[ -n "$terminfo[cuu1]" ]]; then + bindkey -M emacs "$terminfo[cuu1]" history-substring-search-up + bindkey -M viins "$terminfo[cuu1]" history-substring-search-up +fi if [[ -n "$terminfo[kcud1]" ]]; then bindkey -M emacs "$terminfo[kcud1]" history-substring-search-down bindkey -M viins "$terminfo[kcud1]" history-substring-search-down fi - +if [[ -n "$terminfo[cud1]" ]]; then + bindkey -M emacs "$terminfo[cud1]" history-substring-search-down + bindkey -M viins "$terminfo[cud1]" history-substring-search-down +fi