mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-24 03:45:00 +00:00
code_style: general cleanup (#1428)
This commit is contained in:
parent
ae46728bbc
commit
d404f6dbe2
48 changed files with 123 additions and 240 deletions
|
@ -136,8 +136,7 @@ namespace SourceGit.Views
|
|||
{
|
||||
if (UseSyntaxHighlighting)
|
||||
{
|
||||
if (_textMate == null)
|
||||
_textMate = Models.TextMateHelper.CreateForEditor(this);
|
||||
_textMate ??= Models.TextMateHelper.CreateForEditor(this);
|
||||
|
||||
if (DataContext is Models.RevisionTextFile file)
|
||||
Models.TextMateHelper.SetGrammarByFileName(_textMate, file.FileName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue