mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 13:14:59 +00:00
feature: enable syntax highlighting in revision files view (#333)
This commit is contained in:
parent
1ab0ea27df
commit
6bd0920d71
3 changed files with 27 additions and 1 deletions
|
@ -183,7 +183,7 @@ namespace SourceGit.ViewModels
|
|||
}
|
||||
else
|
||||
{
|
||||
var txt = new Models.RevisionTextFile() { Content = content };
|
||||
var txt = new Models.RevisionTextFile() { FileName = file.Path, Content = content };
|
||||
Dispatcher.UIThread.Invoke(() => ViewRevisionFileContent = txt);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue