Browse files

revert changes to common pending further thought

  • Loading branch information...
1 parent 366129a commit 544854aa64d26176d0b6df18071a83a00742a16d @rupa committed Aug 3, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 z.sh
View
7 z.sh
@@ -132,7 +132,12 @@ _z() {
if( matches[i] && (!short || length(i) < length(short)) ) short = i
}
if( short == "/" ) return
- return short
+ for( i in matches ) if( matches[i] && i !~ short ) x = 1
+ if( x ) return
+ if( nc ) {
+ for( i in fnd ) if( tolower(short) !~ tolower(fnd[i]) ) x = 1
+ } else for( i in fnd ) if( short !~ fnd[i] ) x = 1
+ if( !x ) return short
}
BEGIN { split(q, a, " ") }
{

0 comments on commit 544854a

Please sign in to comment.