yac 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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