make play from file safer

This commit is contained in:
ksyasuda
2022-01-04 00:57:22 -08:00
parent f814497f44
commit f9d4f65f22
2 changed files with 70 additions and 36 deletions

View File

@@ -365,7 +365,7 @@ anime_selection() {
rofi -dmenu -config "$CFG_DIR/${ROFI_CFG}" \
-a "$searched" \
-l 12 -i -p "Enter selection:" \
-mesg "$msg")
-mesg "$msg" -only-match)
[ -z "$user_input" ] && return 1
choice=$(printf '%s\n' "$user_input" | awk '{print $1}')