revert changes to common pending further thought

This commit is contained in:
rupa committed 2011-08-03 17:33:42 -04:00
1 parent 366129af90
commit 544854aa64
1 file changed
+6 -1
+6 -1
View File
@@ -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, " ") }
{