diff options
author | 2023-02-24 15:11:14 -0500 | |
---|---|---|
committer | 2023-02-24 15:11:14 -0500 | |
commit | 0743f89d48dde18381c7ca7e3d29cc31699bf986 (patch) | |
tree | 1e447a41d44acfbbd7055035d2eb3494ca90aee1 | |
parent | Fix and simplify logic for optional line numbering (diff) |
Restore implicit no line nums when 0 lines behavior
-rw-r--r-- | bot/exts/utils/snekbox/_cog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/utils/snekbox/_cog.py b/bot/exts/utils/snekbox/_cog.py index a549ec70a..94b06f941 100644 --- a/bot/exts/utils/snekbox/_cog.py +++ b/bot/exts/utils/snekbox/_cog.py @@ -264,7 +264,7 @@ class Snekbox(Cog): truncated = False lines = output.splitlines() - if lines: + if len(lines) > 1: if line_nums: lines = [f"{i:03d} | {line}" for i, line in enumerate(lines, 1)] lines = lines[:max_lines+1] # Limiting to max+1 lines |