commit 1896ceaccc921100da04744845eb17bfa23554d6
parent 0b885650fe63d7679e4fa51c06ae9511dac7af42
Author: Chris Down <chris@chrisdown.name>
Date: Tue, 20 Feb 2018 10:39:30 +0000
Act on possible partials in both directions
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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]}"