From 9d556cd5458aba76dc4ab09bc53f53f2a1893ce9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Rogo=C5=BCa?= <rogoza.piotr@gmail.com>
Date: Mon, 15 Mar 2021 22:27:00 +0100
Subject: [PATCH] fix(emotty): fix `bad assignment` error (#9714)

---
 plugins/emotty/emotty.plugin.zsh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/emotty/emotty.plugin.zsh b/plugins/emotty/emotty.plugin.zsh
index e288b5cfb..4511275d6 100644
--- a/plugins/emotty/emotty.plugin.zsh
+++ b/plugins/emotty/emotty.plugin.zsh
@@ -29,7 +29,7 @@ function emotty() {
   # Parse tty number via prompt expansion. %l equals:
   # - N      if tty = /dev/ttyN
   # - pts/N  if tty = /dev/pts/N
-  local tty = ${${(%):-%l}##pts/}
+  local tty=${${(%):-%l}##pts/}
   # Normalize it to an emotty set index
   (( tty = (tty % ${#${=emotty}}) + 1 ))