From: KlzXS Date: Tue, 16 Feb 2021 21:46:56 +0000 (+0000) Subject: Favor selection over current for nmv X-Git-Tag: v3.6~15^2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=c9c1d0d4547a38bce1c8811fa4edf41e69c0552a;p=nnn.git Favor selection over current for nmv --- diff --git a/plugins/.nmv b/plugins/.nmv index 77625466..6176c961 100755 --- a/plugins/.nmv +++ b/plugins/.nmv @@ -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