summaryrefslogtreecommitdiffstats
path: root/pkg/commands/os.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-08-18 14:52:01 +1000
committerJesse Duffield <jessedduffield@gmail.com>2018-08-18 14:54:05 +1000
commita1a828a781e805a8964c35305edf0365d4aa7068 (patch)
tree6aa23a0f461d3b91adc02522e51ea0c993c99714 /pkg/commands/os.go
parent6b150a4be0e7712d8b8706f10bb80e34094f872b (diff)
support opening and editing config file
Diffstat (limited to 'pkg/commands/os.go')
-rw-r--r--pkg/commands/os.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/os.go b/pkg/commands/os.go
index f5efbac63..32514a419 100644
--- a/pkg/commands/os.go
+++ b/pkg/commands/os.go
@@ -131,7 +131,7 @@ func (c *OSCommand) OpenFile(filename string) (*exec.Cmd, error) {
if err != nil {
return nil, err
}
- err = c.RunCommand(cmdName + " " + filename + cmdTrail) // TODO: test on linux
+ err = c.RunCommand(cmdName + " " + c.Quote(filename) + cmdTrail) // TODO: test on linux
return nil, err
}