Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Highlight the full active line and only hightlight in the focused editor #4887

Merged
merged 2 commits into from Aug 22, 2013

Conversation

TomMalbran
Copy link
Contributor

This fixes the "extend active line highlight to include line numbers" part of the issue #3191.

I also noticed a regression where the active line appeared on both main editor and inline editor, probably after the removal of some !important on the highlight rules, so I fixed this too without using !important.

@ghost ghost assigned RaymondLim Aug 22, 2013
background: @activeline-bgcolor;
}
.CodeMirror-focused .CodeMirror-activeline .CodeMirror-gutter-elt {
background: @activeline-bgcolor;
Copy link
Contributor

Choose a reason for hiding this comment

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

Line number gets the @activeline-bgcolor only for unwrapped lines. If Word Wrap is on, gutter areas for the extra lines wrapped from the original line do not have the active line color.

@RaymondLim
Copy link
Contributor

Done initial review. Looks good except for gutter area of wrapped lines.

@TomMalbran
Copy link
Contributor Author

Nice catch. Fixed it. Might be a hacky way, but it seems to be the only way and it works. I had to make the gutter element use all the available height to fix the background.

RaymondLim added a commit that referenced this pull request Aug 22, 2013
Highlight the full active line and only hightlight in the focused editor
@RaymondLim RaymondLim merged commit 55e0995 into adobe:master Aug 22, 2013
@TomMalbran TomMalbran deleted the tom/highlight-line branch August 22, 2013 22:46
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.

None yet

2 participants