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

WIP: Fix issues highlighting lines containing the cursor - #2704

Closed
nathansobo wants to merge 2 commits into
masterfrom
ns-react-fix-cursor-line-highlight
Closed

nathansobo wants to merge 2 commits into
masterfrom
ns-react-fix-cursor-line-highlight

Conversation

@nathansobo

Copy link
Copy Markdown
Contributor

This PR is in progress, and aims to fix #2701.

@nathansobo

Copy link
Copy Markdown
Contributor Author

@benogle I feel like the class cursor-line is kinda inaccurate to apply to every line of a selection. Really, I think we should maybe have a selected-line class or something along those lines that is rendered when the selection is non-empty, and render the cursor-line classes only when it's empty. As for now the behavior is kinda mixed between the lines and the gutter. Not sure the best time to do this though.

Nathan Sobo added 2 commits June 21, 2014 03:01
This is important so that styles applied to lines extend all the way
across the editor. I tried to use min-width, but it was causing a
full-screen repaint during scroll, which setting the width explicitly
doesn't do.
@probablycorey

Copy link
Copy Markdown

Is there a technical reason why we can't have a cursor-line and a selected-line decorator? It can be helpful to know which end of the selection contains the cursor.

@nathansobo

Copy link
Copy Markdown
Contributor Author

@probablycorey I think it's just for compatibility with previous themes. The compatibility issues get really sticky when it starts coming to CSS stuff.

@nathansobo

Copy link
Copy Markdown
Contributor Author

This has been resolved in a different way.

@nathansobo nathansobo closed this Jul 1, 2014
@kevinsawicki
kevinsawicki deleted the ns-react-fix-cursor-line-highlight branch August 14, 2014 23:33
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.

Cursor line highlights don't go full width and show with selections

2 participants