Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #27 #31

Merged
merged 1 commit into from
Mar 4, 2015
Merged

Fix #27 #31

merged 1 commit into from
Mar 4, 2015

Conversation

tyeen
Copy link
Contributor

@tyeen tyeen commented Feb 20, 2015

Remove the highlighted line when editor lost focus. The behaviour is the same as Overlay mode.

What caused the issue

When using Underneath mode, the current line is highlighted by the current editor's layout manager. The editor is not aware when the focus changed to somewhere else, so the highlighted line remains there.

Why not happen in Overlay mode

In Overlay mode, when focus changed to another editor, the NSWindowDidBecomeKeyNotification will fire in the new editor. Then in moveBacklightInTextView: method, [self.currentBacklightView removeFromSuperview]; will execute and the old highlighted line will be removed.

aliaksandr-andrashuk added a commit that referenced this pull request Mar 4, 2015
@aliaksandr-andrashuk aliaksandr-andrashuk merged commit 47f91f5 into limejelly:master Mar 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants