From d655da70a83d9836e8bcb83390c9468f25850203 Mon Sep 17 00:00:00 2001 From: Vincent Guerci Date: Wed, 8 Jun 2011 10:37:54 -0700 Subject: [PATCH] fix `command not found: up-line-or-history` errors https://github.com/robbyrussell/oh-my-zsh/pull/215#issuecomment-1328406 --- history-substring-search.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/history-substring-search.zsh b/history-substring-search.zsh index 8fea626..7179b9a 100644 --- a/history-substring-search.zsh +++ b/history-substring-search.zsh @@ -126,7 +126,7 @@ history-substring-search-backward() { xlbuflines=(${(f)XLBUFFER}) if [[ $#buflines -gt 1 && $#xlbuflines -ne 1 && $#BUFFER -ne $#LBUFFER ]]; then - up-line-or-history + zle up-line-or-history history_substring_search_move_cursor_eol=false else if [[ $history_substring_search_match_number -ge 2 && $history_substring_search_match_number -le $history_substring_search_number_of_matches_plus_one ]]; then @@ -168,7 +168,7 @@ history-substring-search-forward() { xrbuflines=(${(f)XRBUFFER}) if [[ $#buflines -gt 1 && $#xrbuflines -ne 1 && $#BUFFER -ne $#LBUFFER ]]; then - down-line-or-history + zle down-line-or-history history_substring_search_move_cursor_eol=false else if [[ $history_substring_search_match_number -eq $history_substring_search_number_of_matches_plus_one ]]; then