Skip to content

Commit

Permalink
Fix potential infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
notwa committed Mar 31, 2014
1 parent cee0887 commit 722a564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion z.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ _z() {
t) local typ="recent";;
esac; opt=${opt:1}; done;;
*) local fnd="$fnd${fnd:+ }$1";;
esac; local last=$1; [ "$2" ] && shift; done
esac; local last=$1; [ "$#" -gt 0 ] && shift; done
[ "$fnd" -a "$fnd" != "^$PWD " ] || local list=1

# if we hit enter on a completion just go there
Expand Down

0 comments on commit 722a564

Please sign in to comment.