mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
fixed play -m command to deal with single lines of code (--lines LINENUM)
This commit is contained in:
parent
12927073fc
commit
567546afad
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ e.g amend-line puts 'hello again' # no line number modifies immediately preced
|
|||
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])
|
||||
|
|
Loading…
Reference in a new issue