mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Fix incorrect Bash completions after --long-opt=
This is because `$COMP_CWORD` points to that `=` "word".
This commit is contained in:
@@ -99,7 +99,7 @@ _rgblink_completions() {
|
||||
|
||||
# Parse current word
|
||||
# Careful that it might look like an option, so use `--` aggressively!
|
||||
local cur_word="${COMP_WORDS[$COMP_CWORD]}"
|
||||
local cur_word="${COMP_WORDS[$i]}"
|
||||
|
||||
# Process options, as short ones may change the state
|
||||
if $opt_ena && [[ "$state" = 'normal' && "$cur_word" = '-'* ]]; then
|
||||
|
||||
Reference in New Issue
Block a user