Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Invisibles, Font Size & Cursor #3188

Closed

Description

@mindaugasbudreika

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.

Here is my changes to config.cson:

'editor':
  'showInvisibles': true
  'invisibles':
    'cr': ''
    'eol': ''
    'space': ' '
    'tab': '⇥'
  'softTabs': false
  'fontSize': 15

screenshot 2014-08-05 19 24 57

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.

Mac OSX 10.9.4, Atom 0.116/0.120

Activity

  1. lee-dohm commented on Aug 6, 2014

    @lee-dohm
    Contributor

    Can you reproduce the issue in safe mode?

  2. mindaugasbudreika commented on Aug 6, 2014

    @mindaugasbudreika
    Author

    Can you reproduce the issue in safe mode?
    Yes

    Downloaded 0.115 (probably the one I used before) no problems whatsoever.

  3. postcasio commented on Aug 6, 2014

    @postcasio
    Contributor

    Same as #2785?

  4. mindaugasbudreika commented on Aug 6, 2014

    @mindaugasbudreika
    Author

    I don't use autocomplete and in my case it happens 100% of time when editor settings (noted in initial report) are in place.

  5. benogle commented on Aug 6, 2014

    @benogle
    Contributor

    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?

  6. mindaugasbudreika commented on Aug 6, 2014

    @mindaugasbudreika
    Author

    When react editor is set 'off' issue is no longer present.

  7. self-assigned this
    on Aug 8, 2014
  8. nathansobo commented on Aug 8, 2014

    @nathansobo
    Contributor

    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.

  9. added 5 commits that reference this issue on Aug 9, 2014
    42cb359
    96627e1
    41a1518
    adae7d4
    2daf70f
  10. added a commit that references this issue on Aug 27, 2014
    5e7befb
  11. lock commented on Jan 25, 2019

    @lock

    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!

  12. locked as resolved and limited conversation to collaborators on Jan 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions