mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 13:14:59 +00: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)
|
public void OpenWithDefaultEditor(string file)
|
||||||
{
|
{
|
||||||
var info = new FileInfo(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;
|
start.CreateNoWindow = true;
|
||||||
Process.Start(start);
|
Process.Start(start);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue