Changeset 52cad031e1bc…
Parent d089aa15c3b5…
by
Changes to one file · Browse files at 52cad031e1bc Showing diff from parent d089aa15c3b5 Diff from another changeset...
@@ -242,6 +242,8 @@ """Update the lexer according to the given file"""
lex = lexers.get_lexer(fctx.path(), hglib.tounicode(fctx.data()), self)
self.setLexer(lex)
+ if lex is None:
+ self.setFont(qtlib.getfont('fontlog').font())
def _updaterevmargin(self):
"""Update the content of margin area showing revisions"""
|
Loading...