clipmenu

Simple clipboard management using dmenu
git clone https://git.sinitax.com/cdown/clipmenu
Log | Files | Refs | README | LICENSE | sfeed.txt

commit b4d001149c6b84c592c3492602fbc5e7ab1e5afb
parent f8658b0d0015b48c11772804e982c1a81b66f626
Author: Chris Down <chris@chrisdown.name>
Date:   Mon, 23 Mar 2020 17:23:36 +0000

clipmenud: Remove some debug messages which have never been useful

Diffstat:
Mclipmenud | 13+++----------
1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/clipmenud b/clipmenud @@ -129,17 +129,10 @@ while true; do for selection in "${selections[@]}"; do data=$(_xsel -o --"$selection"; printf x) - data=${data%x} + data=${data%x} # avoid trailing newlines being stripped - if [[ $data != *[^[:space:]]* ]]; then - debug "Skipping as clipboard is only blank" - continue - fi - - if [[ ${last_data[$selection]} == "$data" ]]; then - debug 'Skipping as last selection is the same as this one' - continue - fi + [[ $data == *[^[:space:]]* ]] || continue + [[ ${last_data[$selection]} == "$data" ]] && continue possible_partial=${last_data[$selection]} if [[ $possible_partial && $data == "$possible_partial"* ]] ||