Favor selection over current for nmv

This commit is contained in:
KlzXS 2021-02-16 21:46:56 +00:00
parent 7e307bc2ff
commit c9c1d0d454
No known key found for this signature in database
GPG key ID: FF9B81B098D5BACA

View file

@ -27,12 +27,9 @@ exit_status=0
dst_file=$(mktemp "$TMPDIR/.nnnXXXXXX")
if [ -s "$selection" ]; then
printf "Rename 'c'urrent / 's'election? "
read -r resp
if ! [ "$resp" = "c" ] && ! [ "$resp" = "s" ]; then
exit 1
fi
resp="s"
else
resp="c"
fi
if [ "$resp" = "s" ]; then