From 5fbf174c3644a64ee217c732190b16ab9b65120a Mon Sep 17 00:00:00 2001 From: Alex Mirrlees-Black Date: Tue, 23 Apr 2024 22:38:18 +1000 Subject: [PATCH] input: prevent duplicate input configs --- river/command/input.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/river/command/input.zig b/river/command/input.zig index 09acae7..acc7927 100644 --- a/river/command/input.zig +++ b/river/command/input.zig @@ -91,6 +91,7 @@ pub fn input( for (server.input_manager.configs.items) |*input_config| { if (mem.eql(u8, input_config.glob, args[1])) { try input_config.parse(args[2], args[3]); + break; } } else { var input_config: InputConfig = .{