mirror of
https://github.com/qemu/qemu.git
synced 2025-10-30 19:15:42 +00:00
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:
|
||
|---|---|---|
| .. | ||
| fds.c | ||
| hmp-cmds-target.c | ||
| hmp-cmds.c | ||
| hmp-target.c | ||
| hmp.c | ||
| meson.build | ||
| monitor-internal.h | ||
| monitor.c | ||
| qmp-cmds-control.c | ||
| qmp-cmds.c | ||
| qmp.c | ||
| trace-events | ||
| trace.h | ||