Skip to content

Commit 770203f

Browse files
committed
return self.view.match_selector( 0, "source.d" )
1 parent cab3869 commit 770203f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auto_module_name.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class DlangAutoModuleNameCommand( sublime_plugin.TextCommand ):
99
def is_visible( self ):
10-
return "/D/" in self.view.settings().get( "syntax" )
10+
return self.view.match_selector( 0, "source.d" )
1111

1212

1313
def _check_exists( self, edit ):

0 commit comments

Comments
 (0)