From 7b641a6d6951f908b3b7862c4337dc40adbac1cb Mon Sep 17 00:00:00 2001 From: nobe4 Date: Tue, 23 Jul 2024 13:08:30 +0200 Subject: [PATCH] fix(config): use the config path to edit (#122) --- internal/cmd/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cmd/config.go b/internal/cmd/config.go index b2d2bb0..6e439f9 100644 --- a/internal/cmd/config.go +++ b/internal/cmd/config.go @@ -68,7 +68,7 @@ func editConfig() error { return fmt.Errorf("EDITOR environment variable not set") } - cmd := exec.Command(editor, configPathFlag) + cmd := exec.Command(editor, config.Path) cmd.Stdin = os.Stdin cmd.Stdout = os.Stdout