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 5282482 commit 590efd0Copy full SHA for 590efd0
lib/reline/line_editor.rb
@@ -572,15 +572,16 @@ def just_cursor_moving
572
end
573
574
def screen_width
575
- @line_editor.instance_variable_get(:@screen_size).last
+ @line_editor.screen_width
576
577
578
def screen_height
579
- @line_editor.instance_variable_get(:@screen_size).first
+ @line_editor.screen_height
580
581
582
def preferred_dialog_height
583
- [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
584
+ [editor_cursor_y - @line_editor.screen_scroll_top, @line_editor.rest_height, (screen_height + 6) / 5].max
585
586
587
def completion_journey_data
0 commit comments