diff --git a/main.go b/main.go index 47afbf5..ffe0d9c 100644 --- a/main.go +++ b/main.go @@ -8,7 +8,7 @@ import ( "github.com/rivo/tview" ) -const version = "1.0.29" +const version = "1.0.30" func main() { util.SetTerminalTitle("tut") diff --git a/ui/commands.go b/ui/commands.go index 0113481..4bb5c44 100644 --- a/ui/commands.go +++ b/ui/commands.go @@ -194,7 +194,7 @@ func (tv *TutView) SwitchCommand(s string) { showReplies = parts[len(parts)-1] == "true" } else if len(parts) > 1 && slices.Contains(tfStr, parts[len(parts)-1]) { showBoosts = parts[len(parts)-1] == "true" - } else { + } else if name == "" { fmt.Printf("switch is invalid . Check this for errors: switch %s\n", s) os.Exit(1) }