Prevent extraneous shifting

This commit is contained in:
Connor Olding committed 2014-03-31 02:15:45 -07:00
1 parent 5741d9044d
commit cee0887f77
1 file changed
+1 -1
+1 -1
View File
@@ -113,7 +113,7 @@ _z() {
t) local typ="recent";;
esac; opt=${opt:1}; done;;
*) local fnd="$fnd${fnd:+ }$1";;
esac; local last=$1; shift; done
esac; local last=$1; [ "$2" ] && shift; done
[ "$fnd" -a "$fnd" != "^$PWD " ] || local list=1
# if we hit enter on a completion just go there