Skip to content

Commit

Permalink
fixed not being able to file global root
Browse files Browse the repository at this point in the history
  • Loading branch information
aziz committed Oct 17, 2016
1 parent 5db16e4 commit 7504f48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def insert_title(self, title, tag, view):
class NotesEvents(sublime_plugin.EventListener):

def on_load_async(self, view):
global root
if view.settings().get("is_note") or not view.file_name():
return
if os.path.realpath(view.file_name()).startswith(root):
Expand Down

0 comments on commit 7504f48

Please sign in to comment.