Skip to content

Commit

Permalink
Merge branch 'master' of github.com:rupa/z
Browse files Browse the repository at this point in the history
  • Loading branch information
rupa committed Sep 13, 2015
2 parents e12eefe + d5adc9a commit 5dc2a86
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 @@ -163,7 +163,7 @@ _z() {
# use a copy to escape special characters, as we want to return
# the original. yeah, this escaping is awful.
clean_short = short
gsub(/[\(\)\[\]\|]/, "\\\\&", clean_short)
gsub(/\[\(\)\[\]\|\]/, "\\\\&", clean_short)
for( x in matches ) if( matches[x] && x !~ clean_short ) return
return short
}
Expand Down

0 comments on commit 5dc2a86

Please sign in to comment.