bash-completion: Fix cmake -E lookup
In case of long '<command> <args...>' the description text is wrapped and indented on the next line. Avoid taking these lines into account by explicitly requiring the third character to be a non-space.
This commit is contained in:
parent
93b705a396
commit
fe7f117ad2
|
@ -102,7 +102,7 @@ _cmake()
|
||||||
;;
|
;;
|
||||||
-E)
|
-E)
|
||||||
COMPREPLY=( $( compgen -W "$( cmake -E help |& sed -n \
|
COMPREPLY=( $( compgen -W "$( cmake -E help |& sed -n \
|
||||||
'/^ /{s|^ \([^ ]\{1,\}\) .*$|\1|;p}' 2>/dev/null )" \
|
'/^ [^ ]/{s|^ \([^ ]\{1,\}\) .*$|\1|;p}' 2>/dev/null )" \
|
||||||
-- "$cur" ) )
|
-- "$cur" ) )
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue