From cacbc33398b4e76b24247aac3069ac29aefbb5d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20H=C3=B6ltje?= Date: Sat, 5 Nov 2016 01:40:14 -0400 Subject: [PATCH] Don't bind any zle-* methods It seems like all the zle-* methods are special and shouldn't be monkeyed with. Specifically `zle-isearch-update` and friends. Binding that widget caused `history-incremental-pattern-search` to stop working. Fixes zsh-users/zsh-syntax-highlighting#387 --- src/bind.zsh | 2 +- zsh-autosuggestions.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bind.zsh b/src/bind.zsh index 49763e8..9729873 100644 --- a/src/bind.zsh +++ b/src/bind.zsh @@ -53,7 +53,7 @@ _zsh_autosuggest_bind_widgets() { ignore_widgets=( .\* _\* - zle-line-\* + zle-\* autosuggest-\* $ZSH_AUTOSUGGEST_ORIGINAL_WIDGET_PREFIX\* $ZSH_AUTOSUGGEST_IGNORE_WIDGETS diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index 3761efe..b7f115b 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -177,7 +177,7 @@ _zsh_autosuggest_bind_widgets() { ignore_widgets=( .\* _\* - zle-line-\* + zle-\* autosuggest-\* $ZSH_AUTOSUGGEST_ORIGINAL_WIDGET_PREFIX\* $ZSH_AUTOSUGGEST_IGNORE_WIDGETS