From 7e840941e3d4996978f2c82ca83b9e4e3758ce6c Mon Sep 17 00:00:00 2001 From: Alex Bozhenko Date: Sun, 30 Jun 2024 21:35:20 -0700 Subject: [PATCH] conver to lower case chars --- internal/multigitter/run.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/multigitter/run.go b/internal/multigitter/run.go index 2d734669..4128188d 100755 --- a/internal/multigitter/run.go +++ b/internal/multigitter/run.go @@ -10,6 +10,7 @@ import ( "regexp" "sync" "syscall" + "unicode" "github.com/eiannone/keyboard" "github.com/lindell/multi-gitter/internal/git" @@ -420,7 +421,7 @@ func (r *Runner) interactive(dir string, repo scm.Repository) error { return errRejected } - switch char { + switch unicode.ToLower(char) { case 'v': fmt.Println("Showing changes...") cmd := exec.Command("git", "diff", "HEAD~1")