You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Since I received 0.120 update editor went completely nuts, I tried downgrading to 0.116 and removed ~/.atom but it seems that that's not solving the problem and I can't recall which version I used before the update.
Note that cursor is actually at the end of the line, if I would try to delete (backspace) letter "t" would be removed. Cursor placement changes depending on the font size. Im using standard theme and its probably the only change I made to the editor settings.
Try the latest version and try turning off the react editor in the settings. Does it happen then? Looks like it might be miscalculating the width of that invisible?
I've figured out what's causing this. We're waiting until render time to swap in invisible characters, which is causing us to measure the wider ⇥ character when we think we're measuring a space. This introduces errors in our width calculations which compound with the number of spaces.
The solution is to store the invisible characters in the tokens rather than swapping them in at the last minute before rendering, so the character on screen always matches the character in the model that we think we're measuring.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
Activity
lee-dohm commentedon Aug 6, 2014
Can you reproduce the issue in safe mode?
mindaugasbudreika commentedon Aug 6, 2014
Can you reproduce the issue in safe mode?Yes
Downloaded 0.115 (probably the one I used before) no problems whatsoever.
postcasio commentedon Aug 6, 2014
Same as #2785?
mindaugasbudreika commentedon Aug 6, 2014
I don't use autocomplete and in my case it happens 100% of time when editor settings (noted in initial report) are in place.
benogle commentedon Aug 6, 2014
Try the latest version and try turning off the react editor in the settings. Does it happen then? Looks like it might be miscalculating the width of that invisible?
mindaugasbudreika commentedon Aug 6, 2014
When react editor is set 'off' issue is no longer present.
nathansobo commentedon Aug 8, 2014
I've figured out what's causing this. We're waiting until render time to swap in invisible characters, which is causing us to measure the wider
⇥character when we think we're measuring a space. This introduces errors in our width calculations which compound with the number of spaces.The solution is to store the invisible characters in the tokens rather than swapping them in at the last minute before rendering, so the character on screen always matches the character in the model that we think we're measuring.
Working on this now. Thanks for the report.
Handle invisibles at the token level to fix char width measurement
Handle invisibles at the token level to fix char width measurement
Handle invisibles at the token level to fix char width measurement
Handle invisibles at the token level to fix char width measurement
Handle invisibles at the token level to fix char width measurement
Handle invisibles at the token level to fix char width measurement
lock commentedon Jan 25, 2019
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!