mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07:00
fix: handle file paths with spaces
This commit is contained in:
parent
fd7bc8b122
commit
9a1e95b7e5
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ namespace SourceGit.Native
|
|||
public void OpenWithDefaultEditor(string file)
|
||||
{
|
||||
var info = new FileInfo(file);
|
||||
var start = new ProcessStartInfo("cmd", $"/c start {info.FullName}");
|
||||
var start = new ProcessStartInfo("cmd", $"/c start \"\" \"{info.FullName}\"");
|
||||
start.CreateNoWindow = true;
|
||||
Process.Start(start);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue