Skip to content

Commit

Permalink
Merge pull request #7 from rjshade/master
Browse files Browse the repository at this point in the history
fix a small bug
  • Loading branch information
janlelis committed Nov 1, 2011
2 parents da35346 + e80cd07 commit ed9fc49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/fancy_irb/irb_ext.rb
Expand Up @@ -49,7 +49,10 @@ def output_value
# get lengths
last_input = @scanner.instance_variable_get( :@line )
last_line_without_prompt = last_input.split("\n").last
offset = last_line_without_prompt.display_size + FancyIrb.real_lengths[:input_prompt] + 1
offset = + FancyIrb.real_lengths[:input_prompt] + 1
if last_line_without_prompt
offset += last_line_without_prompt.display_size
end
screen_length = FancyIrb.current_length
screen_lines = FancyIrb.current_lines
output_length = FancyIrb.real_lengths[:output]
Expand Down

0 comments on commit ed9fc49

Please sign in to comment.