rustlings icon indicating copy to clipboard operation
rustlings copied to clipboard

Word wrap is not correct when terminal height > width

Open satvikpendem opened this issue 3 years ago • 2 comments

I often use VSCode with the terminal to the right side, as rustlings exercises wrap at 80 characters, and it looks to me like this, where the word wrapping is strange for rustlings output, as it seems to wrap on letters rather than words, and there are newlines that look fine on a terminal where width > height, but it looks strange when this is not the case. Is there a way to change this to wrap words correctly?

image

satvikpendem avatar Aug 01 '22 21:08 satvikpendem

If anything, this would be a rustc issue, since that seems to be where that's coming from, correct? I'm not aware of an option to change rustc's word wrap settings (if it even has any)

manyinsects avatar Aug 03 '22 15:08 manyinsects

Thanks, I'll ask there.

satvikpendem avatar Aug 05 '22 23:08 satvikpendem