We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f46f39e commit e92440aCopy full SHA for e92440a
lib/reline/line_editor.rb
@@ -571,15 +571,16 @@ def just_cursor_moving
571
end
572
573
def screen_width
574
- @line_editor.instance_variable_get(:@screen_size).last
+ @line_editor.screen_width
575
576
577
def screen_height
578
- @line_editor.instance_variable_get(:@screen_size).first
+ @line_editor.screen_height
579
580
581
def preferred_dialog_height
582
- [cursor_pos.y - @line_editor.screen_scroll_top, @line_editor.rest_height, (screen_height + 6) / 5].max
+ _editor_cursor_x, editor_cursor_y = @line_editor.editor_cursor_position
583
+ [editor_cursor_y - @line_editor.screen_scroll_top, @line_editor.rest_height, (screen_height + 6) / 5].max
584
585
586
def completion_journey_data
0 commit comments