From aea4661be540f075e86f97b881ed125f0233866c Mon Sep 17 00:00:00 2001 From: Jamie Brynes Date: Tue, 7 Jan 2020 18:25:00 +0000 Subject: [PATCH] escape editor path --- pkg/commands/os.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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