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

Handle very long line well #5

Closed
mame opened this issue Jul 12, 2021 · 2 comments · Fixed by #51
Closed

Handle very long line well #5

mame opened this issue Jul 12, 2021 · 2 comments · Fixed by #51

Comments

@mame
Copy link
Member

mame commented Jul 12, 2021

$ ruby t.rb
t.rb:1:in `<main>': undefined method `gsuub' for "fooo
oooooooooooooooooooooooooooooooooooooooooooooooooooooo
ooooooooooooooooooooooooooooooooooooooooooooooooooo":S
tring (NoMethodError)

"foooooooooooooooooooooooooooooooooooooooooooooooooooo
oooooooooooooooooooooooooooooooooooooooooooooooooooooo
oo".gsuub(//, "")


   ^^^^^^
Did you mean?  gsub

Should we truncate such a long code snippet to fit it with the width of terminal?

@ioquatix
Copy link
Member

image

This might be another argument for using bold or xterm color in addition or alternatively to ^^^ style.

@karreiro
Copy link
Contributor

Should we truncate such a long code snippet to fit it with the width of terminal?

Hey @mame, I share the same understanding, and I believe that’s a good idea (I’ve noticed other similar tools adopting the same approach). I’ve left a proposal here: #51

@mame mame closed this as completed in #51 Oct 23, 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 a pull request may close this issue.

3 participants