Skip to content

Commit 5a69215

Browse files
committed
Magic numbers
1 parent ff7d0ac commit 5a69215

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gptcmd/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ def _fragment(tpl: str, msg: Message) -> str:
8383
are replaced with the message fragment.
8484
"""
8585
PLACEHOLDER = "..."
86-
width = 79 - len(tpl.format(msg=""))
86+
MAX_LENGTH = 79
87+
width = MAX_LENGTH - len(tpl.format(msg=""))
8788
content = msg.content
8889
res = shorten(content, width=width, placeholder=PLACEHOLDER)
8990
if res == PLACEHOLDER:

0 commit comments

Comments
 (0)