summaryrefslogtreecommitdiff
path: root/list-objects.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2019-03-20 14:03:28 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-03-21 11:52:11 +0900
commit057ab54b6646fbdabc8c953299f218081ff67456 (patch)
treef04384200663b1ef50f251c5588459bbbd6aa830 /list-objects.c
parentt9902: test multiple removals via completion.commands (diff)
downloadtgif-057ab54b6646fbdabc8c953299f218081ff67456.tar.xz
completion: fix multiple command removals
Commit 6532f3740b ("completion: allow to customize the completable command list", 2018-05-20) tried to allow multiple space-separated entries in completion.commands. To do this, it copies each parsed token into a strbuf so that the result is NUL-terminated. However, for tokens starting with "-", it accidentally passes the original non-terminated string, meaning that only the final one worked. Switch to using the strbuf. Reported-by: Todd Zullinger <tmz@pobox.com> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'list-objects.c')
0 files changed, 0 insertions, 0 deletions