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

unprintable string characters break cursor due to zero display width #18

Closed
therealplato opened this issue Sep 14, 2017 · 4 comments
Closed

Comments

@therealplato
Copy link

Trying to diagnose junk input bytes, I wanted to copy paste whatever it was
I did successfully turn bytes into invisible string and copy paste, but the editor broke:

https://goplay.space/#Xfsy91fp2Z
vs https://play.golang.org/p/Xfsy91fp2Z

@therealplato
Copy link
Author

Might be fixed via #8

@iafan
Copy link
Owner

iafan commented Sep 15, 2017

Do you mind sharing some screenshot/screencasting? I looked at your example, and it seems to be rendering properly for me. The non-printable characters inside the quotes are there, and caret behaves identically when going through them in both playgrounds.

@therealplato
Copy link
Author

Should have mentioned I'm using firefox 55.0.3
https://www.youtube.com/watch?v=xbss4NGHWxM

@iafan
Copy link
Owner

iafan commented Sep 18, 2017

Thanks. I can reproduce this in FF. This happens because FF renders these characters differently in the textarea and in the regular HTML (which rather looks like a bug on FF side). If you disable syntax highlighting in settings in Go Play Space, you will see what I mean. Not sure if this is fixable on my side, unless I completely change the editor component.

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

2 participants