| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cb7e36e commit 9707810
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1375,6 +1375,7 @@ def move_screen_up(current_line_start_row): | |||
| 1375 | 1375 | lines = paint.display_linize(self.current_cursor_line + 'X', width) | |
| 1376 | 1376 | # extra character for space for the cursor | |
| 1377 | 1377 | current_line_end_row = current_line_start_row + len(lines) - 1 | |
| 1378 | + current_line_height = current_line_end_row - current_line_start_row | ||
| 1378 | 1379 | ||
| 1379 | 1380 | if self.stdin.has_focus: | |
| 1380 | 1381 | cursor_row, cursor_column = divmod( | |
@@ -1410,9 +1411,10 @@ def move_screen_up(current_line_start_row): | |||
| 1410 | 1411 | info_max_rows = max(visible_space_above, visible_space_below) | |
| 1411 | 1412 | else: | |
| 1412 | 1413 | # 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) | ||
| 1416 | 1418 | infobox = paint.paint_infobox( | |
| 1417 | 1419 | info_max_rows, | |
| 1418 | 1420 | int(width * self.config.cli_suggestion_width), | |
| Back | FazBrowse Home | New Git URL |
0 commit comments