From a72bdbb43d7ef02bad1cec4368e4f4641c48055d Mon Sep 17 00:00:00 2001 From: gingerBill Date: Wed, 10 Dec 2025 12:05:53 +0000 Subject: [PATCH] Use a single `case` rather than `fallthrough` --- core/terminal/internal.odin | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/core/terminal/internal.odin b/core/terminal/internal.odin index 9404ff833..47ed1818f 100644 --- a/core/terminal/internal.odin +++ b/core/terminal/internal.odin @@ -50,17 +50,8 @@ get_environment_color :: proc() -> Color_Depth { // // Only a small sampling of some common values are checked here. switch term { - case "ansi": fallthrough - case "konsole": fallthrough - case "putty": fallthrough - case "rxvt": fallthrough - case "rxvt-color": fallthrough - case "screen": fallthrough - case "st": fallthrough - case "tmux": fallthrough - case "vte": fallthrough - case "xterm": fallthrough - case "xterm-color": + case "ansi", "konsole", "putty", "rxvt", "rxvt-color", "screen", + "st", "tmux", "vte", "xterm", "xterm-color": return .Three_Bit } }