blank check: Use [:space:], not [:blank:]

This is semantically more correct. Previously, in the most common case,
pastes with only `\n` would result in `bad array subscript`.

Fixes #31.
This commit is contained in:
Chris Down 2016-11-07 08:45:31 +00:00
parent c5f101d996
commit 9efd96b405

View file

@ -84,7 +84,7 @@ while sleep "${CLIPMENUD_SLEEP:-0.5}"; do
debug "Data after stripping: $data" debug "Data after stripping: $data"
if [[ $data != *[^[:blank:]]* ]]; then if [[ $data != *[^[:space:]]* ]]; then
debug "Skipping as clipboard is only blank" debug "Skipping as clipboard is only blank"
continue continue
fi fi