Commits

Kay-Uwe (Kiwi) Lorenz committed ea80bd4

fixed views with no filename

Comments (0)

Files changed (1)

projectspecific.py

 import sublime, sublime_plugin, sys, hashlib, os, glob, json
 import os.path as P
 
-DEBUG = True
+DEBUG = False
 def debug(s, *args):
     if debug:
         sys.stderr.write(s % args)
             win_id = window.id()
             self.activating[win_id] = True
 
-            if view.file_name().endswith('.sublime-project'):
+            file_name = view.file_name()
+
+            project = None
+
+            if file_name is None:
+                pass
+            elif file_name.endswith('.sublime-project'):
                 project = view.file_name()
             else:
                 project = get_active_project(window, self.current_view)