Skip to content

Commit

Permalink
Update texSyntaxListener to use get_setting
Browse files Browse the repository at this point in the history
  • Loading branch information
ig0774 committed Dec 18, 2015
1 parent 8034344 commit 1baf0ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions texSyntaxListener.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
import sublime_plugin

try:
from latextools_utils import get_setting
from latextools_utils.is_tex_file import is_tex_file
except ImportError:
from .latextools_utils import get_setting
from .latextools_utils.is_tex_file import is_tex_file

LATEX_SYNTAX = 'Packages/LaTeX/LaTeX.tmLanguage'
Expand All @@ -23,9 +25,7 @@ def detect_and_apply_syntax(self, view):
if current_syntax == LATEX_SYNTAX:
return

global_settings = sublime.load_settings('LaTeXTools.sublime-settings')
if not view.settings().get('latextools_set_syntax',
global_settings.get('latextools_set_syntax', True)):
if not get_setting('latextools_set_syntax', True):
return

file_name = view.file_name()
Expand Down

0 comments on commit 1baf0ef

Please sign in to comment.