Skip to content

Commit 418c2b9

Browse files
authored
Correct preferred_dialog_height's caller (#638)
The caller should be the dialog itself, not Reline.
1 parent 85d6b4d commit 418c2b9

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
@@ -396,7 +396,7 @@ def auto_indent(&block)
396396
mod_key = RUBY_PLATFORM.match?(/darwin/) ? "Option" : "Alt"
397397
message = "Press #{mod_key}+d to read the full document"
398398
contents = [message] + doc.accept(formatter).split("\n")
399-
contents = contents.take(Reline.preferred_dialog_height)
399+
contents = contents.take(preferred_dialog_height)
400400

401401
y = cursor_pos_to_render.y
402402
Reline::DialogRenderInfo.new(pos: Reline::CursorPos.new(x, y), contents: contents, width: width, bg_color: '49')

0 commit comments

Comments
 (0)