diff --git a/docs/src/markdown/changelog.md b/docs/src/markdown/changelog.md index a857a00..629cc1f 100644 --- a/docs/src/markdown/changelog.md +++ b/docs/src/markdown/changelog.md @@ -1,5 +1,9 @@ # Changelog +## 3.7.3 + +- **FIX**: Fix issue acquiring font styles like `bold` etc. on latter Sublime builds. + ## 3.7.2 - **FIX**: Add Julia language to highlight list. diff --git a/st3/mdpopups/st_scheme_template.py b/st3/mdpopups/st_scheme_template.py index 6971620..7e27951 100644 --- a/st3/mdpopups/st_scheme_template.py +++ b/st3/mdpopups/st_scheme_template.py @@ -358,10 +358,14 @@ def retrieve_selector(self, selector, key=None, explicit_background=True): bg = general.get('background', '#ffffff') scope = self.view.style_for_scope(selector) style = [] - if scope['bold']: + if scope.get('bold', False): style.append('bold') - if scope['italic']: + if scope.get('italic', False): style.append('italic') + if scope.get('underline', False): + style.append('underline') + if scope.get('glow', False): + style.append('glow') color = scope.get('foreground', fg) bgcolor = scope.get('background', (None if explicit_background else bg)) else: diff --git a/st3/mdpopups/version.py b/st3/mdpopups/version.py index 74772c1..3573d82 100644 --- a/st3/mdpopups/version.py +++ b/st3/mdpopups/version.py @@ -1,6 +1,6 @@ """Version.""" -_version_info = (3, 7, 2) +_version_info = (3, 7, 3) __version__ = '.'.join([str(x) for x in _version_info])