Skip to content

Commit

Permalink
fixed play -m command to deal with single lines of code (--lines LINE…
Browse files Browse the repository at this point in the history
…NUM)
  • Loading branch information
banister committed Sep 12, 2011
1 parent 1292707 commit 567546a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pry/default_commands/input.rb
Expand Up @@ -79,7 +79,7 @@ module DefaultCommands
range = opts.l? ? one_index_range_or_number(opts[:l]) : (0..-1)
range = (0..-2) if opts.o?

eval_string.replace((code.each_line.to_a[range]).join)
eval_string.replace(Array(code.each_line.to_a[range]).join)
run "show-input" if opts.o?
elsif opts.f?
file_name = File.expand_path(opts[:f])
Expand Down

0 comments on commit 567546a

Please sign in to comment.