zaw
zaw copied to clipboard
zaw-action:2: number expected
First of all, thank you for the very nice widget. I have been using it already for some years.
Currently I have started to get following error when I press Enter on the selected item:
zaw-action:2: number expected
I have also found out that if I comment out styles in zaw-action(), everything gets executed as before:
#local -a styles=(default alt)
Do I need to add some style settings to make it work?
Thanks report.
I guess your zsh version is old. Could you please test the following code?
local -a ary=(a b); echo $ary
It returns number expected
error for older zsh while current version returns a b
.
We should split this line to support old zsh:
local -a styles
styles=(default alt)
Thank you. Yes, you are right. The old version (5.0.7) would not execute it. I have tried it on another computer, zsh version 5.2, works like charm.