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

Commit 02e36d0

Browse files
committed
Support MagicPython grammar.
1 parent d290a8a commit 02e36d0

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.getActiveEditor()
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)