Skip to content

Commit

Permalink
Fix font style acquiring (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser authored Aug 12, 2020
1 parent cde156a commit 1770818
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/src/markdown/changelog.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
8 changes: 6 additions & 2 deletions st3/mdpopups/st_scheme_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion st3/mdpopups/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Version."""

_version_info = (3, 7, 2)
_version_info = (3, 7, 3)
__version__ = '.'.join([str(x) for x in _version_info])


Expand Down

0 comments on commit 1770818

Please sign in to comment.