mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-30 11:10:23 -04:00
url-mode: early exit when assigning key combos to empty list
This commit is contained in:
parent
fec19f1503
commit
9066ba87df
1 changed files with 3 additions and 0 deletions
|
|
@ -412,6 +412,9 @@ void
|
||||||
urls_assign_key_combos(url_list_t *urls)
|
urls_assign_key_combos(url_list_t *urls)
|
||||||
{
|
{
|
||||||
const size_t count = tll_length(*urls);
|
const size_t count = tll_length(*urls);
|
||||||
|
if (count == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
wchar_t *combos[count];
|
wchar_t *combos[count];
|
||||||
generate_key_combos(count, combos);
|
generate_key_combos(count, combos);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue