Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zaw-action:2: number expected #97

Open
martin-hoger opened this issue Mar 5, 2018 · 2 comments
Open

zaw-action:2: number expected #97

martin-hoger opened this issue Mar 5, 2018 · 2 comments
Labels

Comments

@martin-hoger
Copy link

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?

@termoshtt termoshtt added the Bug label Mar 6, 2018
@termoshtt
Copy link
Contributor

termoshtt commented Mar 6, 2018

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)

@martin-hoger
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants