This instance will be upgraded to Heptapod 0.27.1 on 2021-12-08 at 22:00 UTC+1 (a few minutes of down time)

Commit 92edc071 authored by Steve Borho's avatar Steve Borho
Browse files

annotate: unconditionally set lexer (fixes #101)

parent 0ba7701bea1f
......@@ -227,8 +227,7 @@ class AnnotateView(qscilib.Scintilla):
def _updatelexer(self, fctx):
"""Update the lexer according to the given file"""
lex = lexers.get_lexer(fctx.path(), hglib.tounicode(fctx.data()), self)
if lex:
self.setLexer(lex)
self.setLexer(lex)
def _updaterevmargin(self):
"""Update the content of margin area showing revisions"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment