Merge pull request #815 from yut23/patch-1

xinput: escape colons in device names
This commit is contained in:
Shohei YOSHIDA 2021-08-24 08:54:03 +09:00 committed by GitHub
commit f52061cd68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)