aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/063.out
diff options
context:
space:
mode:
authorDongli Zhang <dongli.zhang@oracle.com>2023-03-02 13:57:50 +0100
committerCédric Le Goater <clg@kaod.org>2023-03-02 13:57:50 +0100
commit9b29a468bd0ca6994dc3d347a01af743c8fe76a7 (patch)
tree4b9e127356db1cb2ae321ba6309ec730201a510a /tests/qemu-iotests/063.out
parenta2b5f8b8ab7b2c947823088103a40f0ff11fe06b (diff)
downloadqemu-9b29a468bd0ca6994dc3d347a01af743c8fe76a7.zip
qemu-9b29a468bd0ca6994dc3d347a01af743c8fe76a7.tar.gz
qemu-9b29a468bd0ca6994dc3d347a01af743c8fe76a7.tar.bz2
readline: fix hmp completion issue
The auto completion does not work in some cases. Case 1. 1. (qemu) info reg 2. Press 'Tab'. 3. It does not auto complete. Case 2. 1. (qemu) block_resize flo 2. Press 'Tab'. 3. It does not auto complete 'floppy0'. Since the readline_add_completion_of() may add any completion when strlen(pfx) is zero, we remove the check with (name[0] == '\0') because strlen() always returns zero in that case. Fixes: 52f50b1e9f8f ("readline: Extract readline_add_completion_of() from monitor") Cc: Joe Jin <joe.jin@oracle.com> Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com> Tested-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'tests/qemu-iotests/063.out')
0 files changed, 0 insertions, 0 deletions