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

Action not executed #103

Open
noscript opened this issue Jan 14, 2021 · 0 comments
Open

Action not executed #103

noscript opened this issue Jan 14, 2021 · 0 comments

Comments

@noscript
Copy link

In my source I have only one action. But having only one element in actions and act_descriptions arrays does not execute the action for me when candidate selected. To work around this I had to duplicate the elements. Maybe I misunderstand something?

function zaw-src-mywidget() {
  candidates=('HELLO' 'WORLD')
  actions=(zaw-src-mycall zaw-src-mycall) # <-- dublicates
  act_descriptions=("description" "description") # <-- dublicates
}
function zaw-src-mycall() {
  LBUFFER="choice was $1"
}
zaw-register-src -n mywidget zaw-src-mywidget
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant