mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-06 23:46:13 +02:00
escape editor path
This commit is contained in:
parent
80377e4716
commit
aea4661be5
@ -326,7 +326,7 @@ func (c *OSCommand) GetLazygitPath() string {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
ex = os.Args[0] // fallback to the first call argument if needed
|
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
|
// RunCustomCommand returns the pointer to a custom command
|
||||||
|
Loading…
x
Reference in New Issue
Block a user