1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

if expression ends in ; then do not gist the result

This commit is contained in:
John Mair 2011-12-05 01:22:35 +13:00
parent 922657e466
commit f40115f323

View file

@ -87,7 +87,7 @@ class Pry
corrected_index = index + normalized_range.first
if code && code != ""
content << code
content << "#{comment_expression_result_for_gist(_pry_.output_array[corrected_index].pretty_inspect)}"
content << "#{comment_expression_result_for_gist(_pry_.output_array[corrected_index].pretty_inspect)}" if code !~ /;\Z/
end
end
elsif opts.present?(:doc)