about summary refs log tree commit diff stats
path: root/modules/by-name/lf/lf/commands/scripts/trash_clear.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules/by-name/lf/lf/commands/scripts/trash_clear.sh')
-rwxr-xr-xmodules/by-name/lf/lf/commands/scripts/trash_clear.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/by-name/lf/lf/commands/scripts/trash_clear.sh b/modules/by-name/lf/lf/commands/scripts/trash_clear.sh
index faa3c553..a41dce27 100755
--- a/modules/by-name/lf/lf/commands/scripts/trash_clear.sh
+++ b/modules/by-name/lf/lf/commands/scripts/trash_clear.sh
@@ -1,8 +1,8 @@
 # shellcheck shell=sh
 
-while read -r file; do
+while IFS="$(printf '\n')" read -r file; do
     set -- "$@" "$(pwd)/$file"
-done <"$(conceal list | fzf --multi --ansi | awk '{for(i=3; i<=NF; i++) {print $i}}' | tmp)"
+done <"$(conceal list | fzf --multi --ansi | awk '{$1="";$2=""; print $0}' | sed 's/^\s*//' | tmp)"
 
 [ "$#" -ne 0 ] && trash empty --match=exact "$@"