Skip to content

Avoid completing empty input - #832

Merged
tompng merged 1 commit into
masterfrom
stop-completing-empty-input
Jan 3, 2024
Merged

tompng merged 1 commit into
masterfrom
stop-completing-empty-input

Conversation

@st0012

@st0012 st0012 commented Jan 2, 2024

Copy link
Copy Markdown
Member

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

st0012 commented Jan 2, 2024

Copy link
Copy Markdown
Member Author

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

@tompng

tompng commented Jan 3, 2024

Copy link
Copy Markdown
Member

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

st0012 commented Jan 3, 2024

Copy link
Copy Markdown
Member Author

Yep it works, thank you 🙌

@tompng
tompng merged commit 812dc2d into master Jan 3, 2024
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants