Skip to content

Commit

Permalink
Fix #49: stop highlighting when file is unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlin7 committed Jun 22, 2023
1 parent ebc4213 commit 0c8ed13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions biscuit/core/components/editors/texteditor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def __init__(self, master, path=None, exists=True, minimalist=False, *args, **kw
self.text.bind("<Configure>", self.on_change)

def unsupported_file(self):
self.text.highlighter.lexer = None
self.text.show_unsupported_dialog()
self.linenumbers.grid_remove()
self.scrollbar.grid_remove()
Expand Down

0 comments on commit 0c8ed13

Please sign in to comment.