1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-04 23:37:41 +02:00

escape editor path

This commit is contained in:
Jamie Brynes 2020-01-07 18:25:00 +00:00 committed by Jesse Duffield
parent 80377e4716
commit aea4661be5

View File

@ -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