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

[Fix] check if compinit is called before calling it #2490

Merged
merged 1 commit into from
Apr 16, 2021

Conversation

akefirad
Copy link
Contributor

@akefirad akefirad commented Apr 16, 2021

Fixing #2489. Not sure about testing, didn't do anything. Please advise me on how to do it.

@ljharb
Copy link
Member

ljharb commented Apr 16, 2021

I'm not actually sure if there's a non-interactive way to test completions. If so, adding tests - one that calls compinit first, one that doesn't - would be amazing.

If there's no way to test it non-interactively, then we'd need to verify these changes manually in zsh (and bash, just to make sure the syntax is valid)

@akefirad
Copy link
Contributor Author

akefirad commented Apr 16, 2021

Sure. I'm not bash guru, sorry can't help with this. Let me know if there's anything else I can help with.

@ljharb ljharb force-pushed the GH-2489-check-compinit-called branch from fcb51be to 117486d Compare April 16, 2021 21:34
@ljharb ljharb changed the title GH-2489 check if compinit is called before calling it [Fix] check if compinit is called before calling it Apr 16, 2021
@ljharb ljharb merged commit 117486d into nvm-sh:master Apr 16, 2021
@akefirad akefirad deleted the GH-2489-check-compinit-called branch April 17, 2021 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants