mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Rollback untoward mutations.
This commit is contained in:
parent
16c08857a6
commit
9d5a1415ac
4 changed files with 4 additions and 4 deletions
|
@ -114,7 +114,7 @@ Copyright (c) 2013 John Mair (banisterfiend)
|
|||
--
|
||||
}
|
||||
on :e, :exec=, "A line of code to execute in context before the session starts" do |input|
|
||||
exec_string << input << "\n"
|
||||
exec_string + input + "\n"
|
||||
end
|
||||
|
||||
on "no-pager", "Disable pager for long output" do
|
||||
|
|
|
@ -52,7 +52,7 @@ class Pry
|
|||
end
|
||||
|
||||
def replace_in_array(array, range)
|
||||
array[range] = arg_string << "\n"
|
||||
array[range] = arg_string + "\n"
|
||||
end
|
||||
|
||||
# @return [Fixnum] The number of lines currently in `eval_string` (the input buffer).
|
||||
|
|
|
@ -97,7 +97,7 @@ class Pry
|
|||
output.puts text.bold(klass.name)
|
||||
grouped[klass].each do |method|
|
||||
header = method.name_with_owner
|
||||
output.puts header << additional_info(header, method)
|
||||
output.puts header + additional_info(header, method)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -156,7 +156,7 @@ class Pry
|
|||
before.times{ prefix.sub! SPACES, '' }
|
||||
new_prefix = prefix + SPACES * after
|
||||
|
||||
line = prefix << line.lstrip unless previously_in_string
|
||||
line = prefix + line.lstrip unless previously_in_string
|
||||
|
||||
output += line
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue