Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.3, 2.0.4, and 2.0.5

stable fileview: assign "fontlog" to fileview when no lexer is matched (fixes #348)

Changeset d089aa15c3b5

Parent cb9625adc167

by Steve Borho

Changes to one file · Browse files at d089aa15c3b5 Showing diff from parent cb9625adc167 Diff from another changeset...

 
331
332
333
 
 
334
335
336
 
348
349
350
 
 
351
352
353
 
331
332
333
334
335
336
337
338
 
350
351
352
353
354
355
356
357
@@ -331,6 +331,8 @@
  self.sci.setMarginWidth(1, 0)   lexer = lexers.get_diff_lexer(self)   self.sci.setLexer(lexer) + if lexer is None: + self.setFont(qtlib.getfont('fontlog').font())   # trim first three lines, for example:   # diff -r f6bfc41af6d7 -r c1b18806486d tortoisehg/hgqt/thgrepo.py   # --- a/tortoisehg/hgqt/thgrepo.py @@ -348,6 +350,8 @@
  else:   lexer = lexers.get_lexer(filename, fd.contents, self)   self.sci.setLexer(lexer) + if lexer is None: + self.setFont(qtlib.getfont('fontlog').font())   self.sci.setText(fd.contents)   self.sci._updatemarginwidth()