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

\r in cmd break cursor position #436

Closed
jcubic opened this issue Sep 12, 2018 · 2 comments
Closed

\r in cmd break cursor position #436

jcubic opened this issue Sep 12, 2018 · 2 comments

Comments

@jcubic
Copy link
Owner

jcubic commented Sep 12, 2018

Expected behavior

if you paste text with \r characters it should work the same as with it.

Actual behavior

Cursor position is broken

Steps to reproduce

create file with CRLF ending on windows and enter some text with newlines and copy past it to terminal.
the cursor is off my the number of newlines.

Browser and OS

Windows

@jcubic
Copy link
Owner Author

jcubic commented Sep 12, 2018

Possible solution use tracking_replace to remove CR from string.

jcubic added a commit that referenced this issue Sep 12, 2018
@jcubic
Copy link
Owner Author

jcubic commented Sep 12, 2018

Actually \r in command line don't give problems it give width: 0ch and browser threat it as space.

@jcubic jcubic closed this as completed Sep 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant