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

Accept " " for colorizing "\t" test #924

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

tompng
Copy link
Member

@tompng tompng commented Apr 17, 2024

Need for ruby/reline#655

After Reline implements bracketed paste, text containing "\t" can be inserted to IRB.
Reline can't render "\t" because the rendered width of "\t" is unknown and flexible, (and I think Reline only supports width within 0..2 now).
There are two options.

  • "\t" can be inserted into IRB, and colorized as two spaces. irb> p ' '.bytes will print [9]
  • "\t" will be converted to two spaces when pasted. irb> p ' '.bytes will print [32, 32]

ruby/reline#655 is doing the former one, need to fix IRB's tab colorizing test.

@tompng tompng merged commit c8182fa into ruby:master Apr 18, 2024
29 checks passed
@tompng tompng deleted the colorize_tab_code_assertion_relax branch April 18, 2024 11:48
matzbot pushed a commit to ruby/ruby that referenced this pull request Apr 18, 2024
artur-intech pushed a commit to artur-intech/ruby that referenced this pull request Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants