Skip to content

Commit

Permalink
Merge pull request #815 from yut23/patch-1
Browse files Browse the repository at this point in the history
xinput: escape colons in device names
  • Loading branch information
syohex committed Aug 23, 2021
2 parents 394239d + b49f300 commit f52061c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_xinput
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f52061c

Please sign in to comment.