diff options
author | Jamie Brynes <jamiebrynes@improbable.io> | 2020-01-07 18:25:00 +0000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-01-08 22:24:36 +1100 |
commit | aea4661be540f075e86f97b881ed125f0233866c (patch) | |
tree | 618d7a97cddffee159ceec05fc82c9160fe862c3 | |
parent | 80377e47169e43a6014591d8990a6376bf5cff53 (diff) |
escape editor path
-rw-r--r-- | pkg/commands/os.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/os.go b/pkg/commands/os.go index a9a5947d9..375a8e77e 100644 --- a/pkg/commands/os.go +++ b/pkg/commands/os.go @@ -326,7 +326,7 @@ func (c *OSCommand) GetLazygitPath() string { if err != nil { ex = os.Args[0] // fallback to the first call argument if needed } - return filepath.ToSlash(ex) + return `"` + filepath.ToSlash(ex) + `"` } // RunCustomCommand returns the pointer to a custom command |