diff --git a/src/main.sh b/src/main.sh index 0140a7c..c70db85 100644 --- a/src/main.sh +++ b/src/main.sh @@ -136,7 +136,8 @@ while true; do __attachment_view "$file" ;; "ctrl-t") - query="'$(__select_category)'" + cat="$(__select_category)" + [ -n "$cat" ] && query="'$cat'" ;; "") __edit "$file"