Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Prevent toggling spell-check when there is no active text editor #139

Merged
merged 1 commit into from
Oct 11, 2016

Conversation

roccosportal
Copy link
Contributor

@roccosportal roccosportal commented May 12, 2016

Fixes #130

@@ -27,6 +27,8 @@ module.exports =

# Internal: Toggles the spell-check activation state.
toggle: ->
if not atom.workspace.getActiveTextEditor()
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be condensed into return unless atom.workspace.getActiveTextEditor()

@as-cii as-cii changed the title check for undefined, issue #130 Prevent toggling spell-check when there is no active text editor Oct 11, 2016
@as-cii as-cii merged commit 684ab41 into atom:master Oct 11, 2016
@as-cii
Copy link
Contributor

as-cii commented Oct 11, 2016

Thanks @roccosportal!

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.

3 participants