Browse Source

fzmp: don't remove non-existant entries from playlist

pull/6/head
DanielFGray 6 years ago
parent
commit
0438c16d7b
  1. 4
      fzmp

4
fzmp

@ -127,8 +127,8 @@ filterPlaylist() { @@ -127,8 +127,8 @@ filterPlaylist() {
'f2') filterByArtist ;;
'>') mpc -q next ; filterPlaylist ;;
'<') mpc -q prev ; filterPlaylist ;;
'ctrl-d') mpc -q del "${choice[1]}" ; filterPlaylist ;;
'enter') mpc -q play "${choice[1]}" ; filterPlaylist ;;
'ctrl-d') [[ -n "${choice[1]}" ]] && mpc -q del "${choice[1]}" ; filterPlaylist ;;
'enter') [[ -n "${choice[1]}" ]] && mpc -q play "${choice[1]}" ; filterPlaylist ;;
esac
}

Loading…
Cancel
Save