mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
render: urls: don’t use/allocate maximum allowed characters unless needed
This commit is contained in:
parent
0f57e6c422
commit
b3043e92f6
1 changed files with 1 additions and 1 deletions
2
render.c
2
render.c
|
|
@ -2579,7 +2579,7 @@ render_urls(struct terminal *term)
|
|||
size_t chars = wcslen(key) + (text_len > 0 ? 3 + text_len : 0);
|
||||
|
||||
const size_t max_chars = 50;
|
||||
chars = max(chars, max_chars);
|
||||
chars = min(chars, max_chars);
|
||||
|
||||
wchar_t label[chars + 2];
|
||||
if (text_len == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue