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 bug in apropos REPL commands #481

Closed
wants to merge 1 commit into from
Closed

Conversation

wrance
Copy link

@wrance wrance commented Jun 14, 2024

Fix bug described in #462 by stripping _.G from the input rather than the output of the apropos* function. This appears to have been the original intended behavior as described by the comment on line 206.

Fix bug described in bakpakin#462
by stripping `_.G` from the input rather than the output of the
`apropos*` function.
@technomancy
Copy link
Collaborator

Looks great; thanks! I've applied your patch using git instead of using github's flow, so it doesn't register as merged, but it is there.

I think I will leave #462 open because while this does allow apropos to find the function in question, it shows under _G.___replLocals___, which is a little counter-intuitive. But it's a big improvement over before where we didn't show it at all!

Thanks again.

@wrance
Copy link
Author

wrance commented Jun 18, 2024

Awesome thanks! Is there another place that would be more intuitive to find it under? Or are you just suggesting that that part be stripped from the output string?

@technomancy
Copy link
Collaborator

Yeah, I just meant the prefix should be excluded since anyone in the repl would be able to access those values by just typing them directly in.

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

Successfully merging this pull request may close these issues.

2 participants