File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1375,6 +1375,7 @@ def move_screen_up(current_line_start_row):
13751375 lines = paint .display_linize (self .current_cursor_line + 'X' , width )
13761376 # extra character for space for the cursor
13771377 current_line_end_row = current_line_start_row + len (lines ) - 1
1378+ current_line_height = current_line_end_row - current_line_start_row
13781379
13791380 if self .stdin .has_focus :
13801381 cursor_row , cursor_column = divmod (
@@ -1410,9 +1411,10 @@ def move_screen_up(current_line_start_row):
14101411 info_max_rows = max (visible_space_above , visible_space_below )
14111412 else :
14121413 # smallest allowed over-full completion box
1413- minimum_possible_height = 30
1414- info_max_rows = max (visible_space_below ,
1415- minimum_possible_height )
1414+ minimum_possible_height = 20
1415+ info_max_rows = min (max (visible_space_below ,
1416+ minimum_possible_height ),
1417+ min_height - current_line_height - 1 )
14161418 infobox = paint .paint_infobox (
14171419 info_max_rows ,
14181420 int (width * self .config .cli_suggestion_width ),
You can’t perform that action at this time.
0 commit comments