From 11bc6ea22b32b4db9fd59eb98aa0ff73343328a1 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 4 Mar 2026 22:23:31 +0100 Subject: [PATCH] fix: Fix usage error in /time command When targeting a specific preference (`/time console off`) the loop would continue to iterate through the remaining categories after finding and applying the setting. Because subsequent items would not match, it always resulted in "invalid usage" printed as well after the success message. --- src/command/cmd_funcs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index bfdf636e..d8fb6b4c 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -5290,6 +5290,9 @@ cmd_time(ProfWin* window, const char* const command, gchar** args) cons_bad_cmd_usage(command); return TRUE; } + if (!set_all) { + break; + } } if (!set_all && n == ARRAY_SIZE(time_prefs)) { cons_bad_cmd_usage(command);