ruby-changes:68307
From: aycabta <ko1@a...>
Date: Fri, 8 Oct 2021 10:34:08 +0900 (JST)
Subject: [ruby-changes:68307] 576eccf76d (master): [ruby/irb] Calculate right side doc dialog width correctly
https://git.ruby-lang.org/ruby.git/commit/?id=576eccf76d From 576eccf76de65828e7c68960f59b855f32093ee0 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Fri, 8 Oct 2021 10:24:55 +0900 Subject: [ruby/irb] Calculate right side doc dialog width correctly https://github.com/ruby/irb/commit/f34da7fa04 --- lib/irb/input-method.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index 9fba4ed852..49c52bd8da 100644 --- a/lib/irb/input-method.rb +++ b/lib/irb/input-method.rb @@ -369,7 +369,7 @@ module IRB https://github.com/ruby/ruby/blob/trunk/lib/irb/input-method.rb#L369 right_x = cursor_pos_to_render.x + autocomplete_dialog.width if right_x + width > screen_width - right_width = screen_width - (right_x + 0) + right_width = screen_width - (right_x + 1) left_x = autocomplete_dialog.column - width left_x = 0 if left_x < 0 left_width = width > autocomplete_dialog.column ? autocomplete_dialog.column : width -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/