From f9a4c753af07ccdfdd75f02a2d34834bcc53055e Mon Sep 17 00:00:00 2001 From: Vincent Guerci Date: Wed, 8 Jun 2011 10:37:54 -0700 Subject: [PATCH] prevent beeps when navigating multi-line commands `man zshzle` at the "zle widget" section: A non-zero return status causes the shell to beep when the widget exits, unless the BEEP options was unset or the widget was called via the zle command. Thus if a user defined widget requires an immediate beep, it should call the beep widget directly. https://github.com/robbyrussell/oh-my-zsh/pull/215#issuecomment-1328406 --- history-substring-search.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/history-substring-search.zsh b/history-substring-search.zsh index 7179b9a..1239529 100644 --- a/history-substring-search.zsh +++ b/history-substring-search.zsh @@ -112,6 +112,8 @@ history-substring-search-end() { # for debugging purposes: #zle -R "mn: "$history_substring_search_match_number" m#: "${#history_substring_search_matches} #read -k -t 200 && zle -U $REPLY + + true } history-substring-search-backward() {