Act on possible partials in both directions
This commit is contained in:
parent
0b885650fe
commit
1896ceaccc
|
@ -163,7 +163,8 @@ while true; do
|
||||||
# If we were in the middle of doing a selection when the previous poll
|
# If we were in the middle of doing a selection when the previous poll
|
||||||
# ran, then we may have got a partial clip.
|
# ran, then we may have got a partial clip.
|
||||||
possible_partial=${last_data[$selection]}
|
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 "$possible_partial is a possible partial of $data"
|
||||||
debug "Removing ${last_filename[$selection]}"
|
debug "Removing ${last_filename[$selection]}"
|
||||||
rm -- "${last_filename[$selection]}"
|
rm -- "${last_filename[$selection]}"
|
||||||
|
|
Loading…
Reference in a new issue