From ca7e5e4274a38999d29dba2b530bb3f42950e937 Mon Sep 17 00:00:00 2001
From: Aaron Culich <aculich@gmail.com>
Date: Sun, 14 Jul 2024 13:13:07 -0700
Subject: [PATCH] list yank in ZSH_AUTOSUGGEST_ZLE_YANKBEFORE_WIDGETS

---
 src/config.zsh          | 2 +-
 zsh-autosuggestions.zsh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/config.zsh b/src/config.zsh
index ad2c215..3b2186e 100644
--- a/src/config.zsh
+++ b/src/config.zsh
@@ -111,7 +111,6 @@ typeset -g ZSH_AUTOSUGGEST_COMPLETIONS_PTY_NAME=zsh_autosuggest_completion_pty
 	ZSH_AUTOSUGGEST_ZLE_YANK_WIDGETS=(
 		bracketed-paste
 		vi-put-after
-		yank
 	)
 }
 
@@ -120,5 +119,6 @@ typeset -g ZSH_AUTOSUGGEST_COMPLETIONS_PTY_NAME=zsh_autosuggest_completion_pty
 	typeset -ga ZSH_AUTOSUGGEST_ZLE_YANKBEFORE_WIDGETS
 	ZSH_AUTOSUGGEST_ZLE_YANKBEFORE_WIDGETS=(
 		vi-put-before
+		yank
 	)
 }
diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh
index 0097a7f..0882c44 100644
--- a/zsh-autosuggestions.zsh
+++ b/zsh-autosuggestions.zsh
@@ -137,7 +137,6 @@ typeset -g ZSH_AUTOSUGGEST_COMPLETIONS_PTY_NAME=zsh_autosuggest_completion_pty
 	ZSH_AUTOSUGGEST_ZLE_YANK_WIDGETS=(
 		bracketed-paste
 		vi-put-after
-		yank
 	)
 }
 
@@ -146,6 +145,7 @@ typeset -g ZSH_AUTOSUGGEST_COMPLETIONS_PTY_NAME=zsh_autosuggest_completion_pty
 	typeset -ga ZSH_AUTOSUGGEST_ZLE_YANKBEFORE_WIDGETS
 	ZSH_AUTOSUGGEST_ZLE_YANKBEFORE_WIDGETS=(
 		vi-put-before
+		yank
 	)
 }