Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Commit 5e713c8

Browse files
committed
Support MagicPython grammar.
1 parent 83c7582 commit 5e713c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/python-isort.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class PythonIsort
99
editor = atom.workspace.getActiveTextEditor()
1010
if not editor?
1111
return false
12-
return editor.getGrammar().name == 'Python'
12+
return editor.getGrammar().scopeName == 'source.python'
1313

1414
removeStatusbarItem: =>
1515
@statusBarTile?.destroy()

0 commit comments

Comments
 (0)