discordo/internal/config/editor_unix.go
Abby K eee2862a1e
fix(config): handle editor with args on unix (#744)
Co-authored-by: Ayyan <ayn2op@gmail.com>
2026-02-17 01:33:49 -05:00

11 lines
195 B
Go

//go:build unix
package config
import (
"os/exec"
)
func (cfg *Config) CreateEditorCommand(path string) *exec.Cmd {
return exec.Command("sh", "-c", cfg.Editor+" \"$@\"", cfg.Editor, path)
}