xinput: escape colons in device names
The completion menu breaks if any device names have colons in them, as colons are used to separate completion matches from their descriptions.
This commit is contained in:
parent
394239d746
commit
b49f300934
|
@ -114,7 +114,7 @@ _xinput(){
|
|||
[[ -n "$i" ]] || continue
|
||||
xinput_devices_id+=($i)
|
||||
name="$(xinput list --name-only $i)"
|
||||
xinput_devices_name+=($name)
|
||||
xinput_devices_name+=(${name//:/\\:})
|
||||
xinput_devices+=($i\:$name)
|
||||
done
|
||||
xinput_devices+=($xinput_devices_name)
|
||||
|
|
Loading…
Reference in New Issue