mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/irb] Determine left and right when the width of either side is zero correctly
https://github.com/ruby/irb/commit/5df6e1f027
This commit is contained in:
parent
576eccf76d
commit
1507cb084c
1 changed files with 2 additions and 2 deletions
|
@ -381,10 +381,10 @@ module IRB
|
|||
width = left_width
|
||||
x = left_x
|
||||
end
|
||||
elsif right_width.positive? and left_width.negative?
|
||||
elsif right_width.positive? and left_width <= 0
|
||||
width = right_width
|
||||
x = right_x
|
||||
elsif right_width.negative? and left_width.positive?
|
||||
elsif right_width <= 0 and left_width.positive?
|
||||
width = left_width
|
||||
x = left_x
|
||||
else # Both are negative width.
|
||||
|
|
Loading…
Add table
Reference in a new issue