Merge branch 'master' of github.com:rupa/z

This commit is contained in:
rupa committed 2015-09-13 16:38:00 -04:00
commit 5dc2a863cc
1 file changed
+1 -1
+1 -1
View File
@@ -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
}