Permalink
Browse files

fixed exception when you activate a view without a syntax setting

  • Loading branch information...
1 parent f573784 commit baef7a45150ac61276160eca42baa87ac59c0ade @lunixbochs committed Oct 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 xiki.py
View
@@ -389,7 +389,7 @@ def wrapper():
return wrapper
def is_xiki_buffer(view):
- if view is None:
+ if view is None or not view.settings().has('syntax'):
return False
return view.settings().get('syntax').endswith('/Xiki.tmLanguage')

0 comments on commit baef7a4

Please sign in to comment.