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

Avoid completing empty input #832

Merged
merged 1 commit into from
Jan 3, 2024
Merged

Avoid completing empty input #832

merged 1 commit into from
Jan 3, 2024

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Jan 2, 2024

The candidate list for empty input is all methods + all variables + all constants + all keywords. It's a long list that is not useful.

@st0012 st0012 added the bug Something isn't working label Jan 2, 2024
@st0012
Copy link
Member Author

st0012 commented Jan 2, 2024

Hmm I don't really understand how this would change the dialog tests' result 🤔

@tompng
Copy link
Member

tompng commented Jan 3, 2024

It's reline's bug that pasting "code1\C-icode2" is treated as "\C-icode1code2"

Changing write("IR\C-i") to write("IR"); write("\C-i") might make the test pass.

The candidate list for empty input is all methods + all variables +
all constants + all keywords. It's a long list that is not useful.
@st0012 st0012 force-pushed the stop-completing-empty-input branch from ea49a72 to 45e4d4e Compare January 3, 2024 10:31
@st0012
Copy link
Member Author

st0012 commented Jan 3, 2024

Yep it works, thank you 🙌

@tompng tompng merged commit 812dc2d into master Jan 3, 2024
55 checks passed
@tompng tompng deleted the stop-completing-empty-input branch January 3, 2024 13:47
matzbot pushed a commit to ruby/ruby that referenced this pull request Jan 3, 2024
(ruby/irb#832)

The candidate list for empty input is all methods + all variables +
all constants + all keywords. It's a long list that is not useful.

ruby/irb@812dc2df7b
@st0012 st0012 mentioned this pull request Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

2 participants