From 4321fc097c408f6a8dfab8acf36d4706adb35386 Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Fri, 17 Feb 2017 23:20:04 -0700 Subject: [PATCH] We need to bind on every precmd to ensure we wrap other wrappers Specifically, highlighting breaks if our widgets are wrapped by z-syn-h widgets. --- src/start.zsh | 2 -- zsh-autosuggestions.zsh | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/start.zsh b/src/start.zsh index a982f2d..c5ac120 100644 --- a/src/start.zsh +++ b/src/start.zsh @@ -5,8 +5,6 @@ # Start the autosuggestion widgets _zsh_autosuggest_start() { - add-zsh-hook -d precmd _zsh_autosuggest_start - _zsh_autosuggest_feature_detect _zsh_autosuggest_bind_widgets diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index df4f4a5..4018b0f 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -609,8 +609,6 @@ _zsh_autosuggest_async_start() { # Start the autosuggestion widgets _zsh_autosuggest_start() { - add-zsh-hook -d precmd _zsh_autosuggest_start - _zsh_autosuggest_feature_detect _zsh_autosuggest_bind_widgets