Skip to content

Commit 80c4329

Browse files
committed
Set the dialog width to render with a fixed width
1 parent 49a73d9 commit 80c4329

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/irb/input-method.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def auto_indent(&block)
363363
x = cursor_pos_to_render.x + autocomplete_dialog.width
364364
x = cursor_pos_to_render.x - width if x + width >= screen_width
365365
y = cursor_pos_to_render.y + pointer - autocomplete_dialog.scroll_top
366-
DialogRenderInfo.new(pos: Reline::CursorPos.new(x, y), contents: contents, bg_color: '49')
366+
DialogRenderInfo.new(pos: Reline::CursorPos.new(x, y), contents: contents, width: width, bg_color: '49')
367367
}
368368

369369
# Reads the next line from this input method.

0 commit comments

Comments
 (0)