From 1896ceaccc921100da04744845eb17bfa23554d6 Mon Sep 17 00:00:00 2001 From: Chris Down Date: Tue, 20 Feb 2018 10:39:30 +0000 Subject: [PATCH] Act on possible partials in both directions --- clipmenud | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clipmenud b/clipmenud index 684e776..0f0c666 100755 --- a/clipmenud +++ b/clipmenud @@ -163,7 +163,8 @@ while true; do # If we were in the middle of doing a selection when the previous poll # ran, then we may have got a partial clip. possible_partial=${last_data[$selection]} - if [[ $possible_partial && $data == "$possible_partial"* ]]; then + if [[ $possible_partial && $data == "$possible_partial"* ]] || + [[ $possible_partial && $data == *"$possible_partial" ]]; then debug "$possible_partial is a possible partial of $data" debug "Removing ${last_filename[$selection]}" rm -- "${last_filename[$selection]}"