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.
Cursor x position is miscalculated in certain situations #1036
They all use the same cache. It may have been effed by some other editor.
What were you trying to type? Just the 'a'?
Can you get the width of it for me + width of others from that scope in the cache. It's going to be in here: require('atom').Editor.characterWidthCache
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
benogle commentedon Oct 25, 2013
They all use the same cache. It may have been effed by some other editor.
require('atom').Editor.characterWidthCachebenogle commentedon Oct 25, 2013
If the issue were about caching in a hidden/detatched state, the widths would be 0.
probablycorey commentedon Oct 29, 2013
@nathansobo what font were you using in this bug?
nathansobo commentedon Nov 1, 2013
Whatever the standard one is.
nathansobo commentedon Nov 1, 2013
It's happening again... looks like "s" and "v" for plain text grammars have a width of 14 where everything else has 9.
probablycorey commentedon Nov 14, 2013
This just happened to me for the first time
The values for
null-grammar.text.plainare all sorts of weird.Results from
copy(JSON.stringify(require('atom').Editor.characterWidthCache, null, 2))probablycorey commentedon May 1, 2014
Just ran into this again running on 3d2dedb
The cursor position is only screwed up when it is on a line with bold text.
nathansobo commentedon May 2, 2014
Should be fixed in the new React editor. Were you using the old one?
probablycorey commentedon May 2, 2014
I have React off on my laptop. I'll try turning it on to see if I can reproduce it.
nathansobo commentedon May 2, 2014
Good, you're confirming my assumption. I doubt you'll be able to reproduce it in React if my mental model is correct.
nathansobo commentedon May 2, 2014
You probably haven't used the light theme in a while, I'm guessing.
probablycorey commentedon May 2, 2014
Being outside forced me to the light side.
nathansobo commentedon Jul 25, 2014
@izuzak This should be fixed when we default to React for the mini editors. Still ironing out some issues there.
kevinsawicki commentedon Oct 31, 2014
Closing this out, React is now being used in the mini editors.
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!