Commits

Yuya Nishihara committed b483341

rejects: use monospace (or configured) font even if no lexer found (fixes #3500)

HgFileView has the same logic.

Comments (0)

Files changed (1)

tortoisehg/hgqt/rejects.py

         editor.setModified(False)
         lexer = lexers.getlexer(ui, path, earlybytes, self)
         editor.setLexer(lexer)
+        if lexer is None:
+            editor.setFont(qtlib.getfont('fontlog').font())
         editor.setMarginLineNumbers(1, True)
         editor.setMarginWidth(1, str(editor.lines())+'X')