]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Conditionally Ignore the first entry in list of completions
authorLin Ma <lma@suse.com>
Tue, 8 May 2018 14:20:31 +0000 (22:20 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 10 May 2018 07:05:46 +0000 (09:05 +0200)
commit55948988e896f457b654daff66bc5953f344c996
tree3831e6ab14ce1a835c7d36ffd7e160e8d0172248
parentf3097dc8b642d9d76485d1698680f9f0a0a19cb4
virsh: Conditionally Ignore the first entry in list of completions

The first entry in the returned array is the substitution for TEXT. It
causes unnecessary output if other commands or options share the same
prefix, e.g.

$ virsh des<TAB><TAB>
des      desc     destroy

or

$ virsh domblklist --d<TAB><TAB>
--d        --details  --domain

This patch fixes the above issue.

Signed-off-by: Lin Ma <lma@suse.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tools/vsh.c