powerline-go
powerline-go copied to clipboard
Unknown option error after tab autocompletion and ctrl + C
Describe the bug In some circumstances, it seems that the autocomplete output is transmitted to powerline-go and interpretted as an option. But I hope this is not a very secific error of y setup and it can be reproduced.
To Reproduce Steps to reproduce the behavior:
- Type a command that always takes subcommand (for me, it reproduces with Android's
adb, it is available on most Linuxes under theandroid-toolspackage) - Hit tab to autcomple the subcommands and options; for `adb, it shoud display:
bugreport devices -e get-serialno install logcat pull reboot-bootloader -s status-window uninstall
connect disable-verity emu get-state jdwp lolcat push remount shell sync usb
-d disconnect forward help kill-server -p reboot root start-server tcpip version
- Hit ctrl + c
-
powerline-goshould displayflag provided but not defined: -dand the the help.
Expected behavior
Output from autocomplete should not be passed to powerline-go.
Environment (please complete the following information):
- OS: Linux Fedora 35
- Architecture: AMD64
- Shell: Bash