diff options
author | Jeff King <peff@peff.net> | 2019-03-20 14:03:28 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-03-21 11:52:11 +0900 |
commit | 057ab54b6646fbdabc8c953299f218081ff67456 (patch) | |
tree | f04384200663b1ef50f251c5588459bbbd6aa830 /git-difftool--helper.sh | |
parent | t9902: test multiple removals via completion.commands (diff) | |
download | tgif-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 'git-difftool--helper.sh')
0 files changed, 0 insertions, 0 deletions