We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff7d0ac commit 5a69215Copy full SHA for 5a69215
src/gptcmd/cli.py
@@ -83,7 +83,8 @@ def _fragment(tpl: str, msg: Message) -> str:
83
are replaced with the message fragment.
84
"""
85
PLACEHOLDER = "..."
86
- width = 79 - len(tpl.format(msg=""))
+ MAX_LENGTH = 79
87
+ width = MAX_LENGTH - len(tpl.format(msg=""))
88
content = msg.content
89
res = shorten(content, width=width, placeholder=PLACEHOLDER)
90
if res == PLACEHOLDER:
0 commit comments