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

Handle invisibles at the token level to fix char width measurement - #3206

Merged
nathansobo merged 15 commits into
masterfrom
ns-invisibles-in-tokens
Aug 13, 2014
Merged

nathansobo merged 15 commits into
masterfrom
ns-invisibles-in-tokens

Conversation

@nathansobo

Copy link
Copy Markdown
Contributor
  • Get cursor position working correctly
  • Fix specs
  • Fix leading/trailing whitespace styling
  • Handle end of line invisibles in the model as well for consistency
  • Fix editor:move-to-first-character-of-line
  • Disable invisibles in mini editors

Fixes #3188
Fixes #2785

Comment thread spec/config-spec.coffee

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kevinsawicki Thought I should run these changes to config by you.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me.

Nathan Sobo added 15 commits August 13, 2014 16:31
This fixes the styling of the leading whitespace of folded lines
This commit also extends config.get to merge default values into the
returned object if both the assigned and default values are objects.
This allows 'atom.invisibles' to be treated as an object that always has
the default values filled in.
This moves observation of the config keys to Editor, which assigns the
invisibles hash or null on the TokenizedBuffer via the DisplayBuffer to
control whether we render invisibles or not.
nathansobo pushed a commit that referenced this pull request Aug 13, 2014
Handle invisibles at the token level to fix char width measurement
@nathansobo
nathansobo merged commit 16fd14d into master Aug 13, 2014
@nathansobo
nathansobo deleted the ns-invisibles-in-tokens branch August 13, 2014 22:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invisibles, Font Size & Cursor Weird cursor position

2 participants