diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-12-10 12:05:53 +0000 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2025-12-10 12:05:53 +0000 |
| commit | a72bdbb43d7ef02bad1cec4368e4f4641c48055d (patch) | |
| tree | c8db6a2d2b8781fb6f8129a8be7ff3d485fcbf21 | |
| parent | 19915d4311b8592a09c1ba9a4af0d82b5a61550f (diff) | |
Use a single `case` rather than `fallthrough`
| -rw-r--r-- | core/terminal/internal.odin | 13 |
1 files 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 } } |