diff options
author | Piotr Rogoża <rogoza.piotr@gmail.com> | 2021-03-15 22:27:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-15 22:27:00 +0100 |
commit | 9d556cd5458aba76dc4ab09bc53f53f2a1893ce9 (patch) | |
tree | b9bdac43fbe31572fc4da8d7a6f89c75eb9873b2 /plugins/emotty | |
parent | 040aadf7c460112386d23786d8d3f5d2dcfbfeb4 (diff) | |
download | zsh-9d556cd5458aba76dc4ab09bc53f53f2a1893ce9.tar.gz zsh-9d556cd5458aba76dc4ab09bc53f53f2a1893ce9.tar.bz2 zsh-9d556cd5458aba76dc4ab09bc53f53f2a1893ce9.zip |
fix(emotty): fix `bad assignment` error (#9714)
Diffstat (limited to 'plugins/emotty')
-rw-r--r-- | plugins/emotty/emotty.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
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 )) |