aboutsummaryrefslogtreecommitdiffstats
path: root/lib/irb/input-method.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb/input-method.rb')
-rw-r--r--lib/irb/input-method.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb
index 49c52bd8da..5efd5d8e21 100644
--- a/lib/irb/input-method.rb
+++ b/lib/irb/input-method.rb
@@ -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.