From 8642cd7239a3daeca4a0f6b47c791a4c3adec32d Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Thu, 9 Jul 2015 21:01:37 -0700 Subject: adb tab completion: remove extraneous state An extraneous state caused adding -s to the command line to have an off-by-one error when trying to tab complete the device serial number. Instead ignore that state in the state machine but still use the state to determine when we should try to get a serial number for completion from adb. Bug: 22353839 Change-Id: I0c67ed6e395ea3689ba2707981c9514c6d5edabb --- bash_completion/adb.bash | 2 -- 1 file changed, 2 deletions(-) diff --git a/bash_completion/adb.bash b/bash_completion/adb.bash index c1793d9e1..397de8e4b 100644 --- a/bash_completion/adb.bash +++ b/bash_completion/adb.bash @@ -43,9 +43,7 @@ _adb() { *) if [[ $where == OPT_SERIAL ]]; then where=OPT_SERIAL_ARG - elif [[ $where == OPT_SERIAL_ARG ]]; then serial=${cur} - where=OPTIONS else where=COMMAND break -- cgit v1.2.3