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

Console: Word Wrap mode does not wrap long words, leaving a horizontal scrollbar #5580

Open
jmcphers opened this issue Dec 3, 2024 · 1 comment
Assignees
Labels
area: console Issues related to Console category.

Comments

@jmcphers
Copy link
Collaborator

jmcphers commented Dec 3, 2024

System details:

Positron and OS details:

Positron Version: 2025.01.0 (Universal) build 2
Code - OSS Version: 1.93.0
Commit: a36f4d7ccf01d05c97dee2b52020e59229900841
Date: 2024-12-02T02:49:27.204Z
Electron: 30.4.0
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Darwin arm64 24.1.0

Interpreter details:

Any

Describe the issue:

Word Wrap doesn't wrap long words; it only wraps at "natural" wrapping points (spaces, punctuation, etc.)

Steps to reproduce the issue:

Try this R code and note that words are wrapped correctly:

cat(rep("LongWord", 22))

Then try this code:

cat(rep("LongWord", 22), sep="")

This results in a long word that you need to scroll horizontally to see the end of.

Image

In addition, the console now has a horizontal scrollbar you can't get rid of without clearing the whole thing.

Expected or desired behavior:

It's debatable, but in my opinion word wrap mode should allow you to see all the output without scrolling horizontally, even if we have to break words at unnatural boundaries.

Were there any error messages in the UI, Output panel, or Developer Tools console?

No

@jmcphers jmcphers added the area: console Issues related to Console category. label Dec 3, 2024
@juliasilge juliasilge marked this as a duplicate of #2102 Jan 8, 2025
@juliasilge juliasilge marked this as a duplicate of #2381 Jan 8, 2025
@juliasilge
Copy link
Contributor

We had this tracked in at least two other places, #2102 and #2381.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: console Issues related to Console category.
Projects
None yet
Development

No branches or pull requests

3 participants