yac 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/yac.rb +2 -1
- data/yac.gemspec +1 -1
- metadata +1 -1
data/lib/yac.rb
CHANGED
@@ -212,9 +212,10 @@ module Yac
|
|
212
212
|
format_section(empha(stuff[2],nil,/((#{args}))/i),true)
|
213
213
|
all_result.concat(stuff[0].to_a)
|
214
214
|
end
|
215
|
+
all_result.uniq!
|
215
216
|
loop do
|
217
|
+
all_result.size > 1 ? (file = full_path(choose_one(all_result))) : (format_file(full_path(all_result[0]));break)
|
216
218
|
colorful("All files Contain #{args.strip},Choose one to show","notice")
|
217
|
-
file = full_path(choose_one(all_result))
|
218
219
|
file ? format_file(file) : break
|
219
220
|
end
|
220
221
|
end
|
data/yac.gemspec
CHANGED